Hi
I am having one folder with set of text files now i want to
read and write that text files data into QTP. Any help
plsss.
Answer Posted / gyanesh ranjan rout
Dim fso,f
Set fso=createobject("scripting.filesystemobject")
Set f=fso.OpenTextFile("c:\text.txt", 2, True)
f.Write("how r u")
Set f=fso.OpenTextFile("c:\text.txt", 1)
readalltextfile= f.ReadAll
msgbox readalltextfile
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the naming conventions while declaring a variable in the vbscript language?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Explain about adodb.stream class?
Explain about the support of asp for vb script functionality?
Explain different types of segment?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
What is the difference between vb debugger and the script debugger?
How to assign a date value to a variable?
Explain some uses of vb script?
What are keywords in the vbscript language?
How to replace junk code recorded by QTP with a mall function.
Mention what is the technology used by vb script?
How to write VB script for login module?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?