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


Please Help Members By Posting Answers For Below Questions

What are the naming conventions while declaring a variable in the vbscript language?

621


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1791


Explain about adodb.stream class?

595


Explain about the support of asp for vb script functionality?

532


Explain different types of segment?

574






Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1590


What is the difference between vb debugger and the script debugger?

598


How to assign a date value to a variable?

593


Explain some uses of vb script?

556


What are keywords in the vbscript language?

527


How to replace junk code recorded by QTP with a mall function.

1649


Mention what is the technology used by vb script?

523


How to write VB script for login module?

2678


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?

3557


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?

864