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 / 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 |
write a vb script to create a folder?
Explain the asc function?
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
i want to when we will write the scripts either after getting the build or after getting the SRS?
What's the difference between vbscript and vb.net?
What are the valid scopes of a variable in vbscript?
Differentiate javascript and vbscript?
What is the difference between for loop and while loop?
How do you declare a variable in vbscript?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
why do u choose to go for testing why cant for devoloping