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
How will you check that a variable is an array in vbscript?
Mention what is variant in vbscript?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
What is the difference between vbscript and vba?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
How you can call vbscript functions?
What are the data types supported by vbscript?
How to throw an error in vbscript?
What are the advantages of vbscript?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
about vb scripting programs this type of all question& answers
What is vbscript procedures?