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
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Explain the extension .hta?
How to write VB script for login module?
How are comments handled in the vbscript language?
How will you get a string with the specified character the specified number of times in vbscript?
what do you mean .ota mobile format
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
Mention what are the rules to name variable in vbscript?
How to replace junk code recorded by QTP with a mall function.
Explain about the functionality of vb script?
What is the technology used by vb script?
What are class properties?
What are the special sub-types in vbscript?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.