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

write a vb script to create a folder?

3 Answers  


Explain the asc function?

0 Answers  


how to display all the links in one page using vb script in qtp.

1 Answers   DST Global Solutions,


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

0 Answers  


i want to when we will write the scripts either after getting the build or after getting the SRS?

3 Answers  






What's the difference between vbscript and vb.net?

0 Answers  


What are the valid scopes of a variable in vbscript?

0 Answers  


Differentiate javascript and vbscript?

0 Answers  


What is the difference between for loop and while loop?

0 Answers  


How do you declare a variable in vbscript?

0 Answers  


Out of the different type of operators, which are evaluated first and last in the vbscript language?

0 Answers  


why do u choose to go for testing why cant for devoloping

0 Answers  


Categories