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.



Hi I am having one folder with set of text files now i want to read and write that text files d..

Answer / 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

More VB Script Interview Questions

How can the spaces from the string be removed?

0 Answers  


this q asked in applabs, q is: QTP should open google.com page and enter "qtp" in one edit(search) box and click search and should open google.com again and enter "job" in edit(search) box and click on search. I tried this but getting error "Edit(search) box matches more than one object", could anyone this question plz..

1 Answers   AppLabs,


write a vb script to generate hello 5 times using do until loop

4 Answers  


what is extension of the file if its saved from recovery manger to some drive

1 Answers  


What are the valid scopes of a variable in vbscript?

0 Answers  






What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


how to validate the text in a web table

2 Answers   Mphasis,


Mention how you can call vbscript functions?

0 Answers  


What is the difference between vbscript and vba?

0 Answers  


what is used of Property........End Property loop ? how to write the script for it?

0 Answers  


how many types of recording are there?

1 Answers  


how to write function to validate the number of characters entering into the text box?

2 Answers   TCS,


Categories