Answer Posted / smitha
correct code
const ForReading = 1, ForWriting = 2
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.OpenTextFile("D:\New
Folder\somefile.txt",ForWriting, True)
MyFile.WriteLine "Hello world!"
MyFile.WriteLine "The quick brown fox"
MyFile.Close
Set MyFile = fso.OpenTextFile("D:\New
Folder\somefile.txt",ForReading)
ReadLineTextFile = MyFile.ReadLine ' Returns "Hello world!"
MyFile.ReadLine
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do you capture tooltip using QTP?
What is recovery scenario in qtp?
What is TOM in QTP?
what is vmodel?advantages and disadvantages of vmodel?
What is the basic concept of quicktest professional (qtp)?
Dis advantages of XML checkpoint ?
Explain data driven framework?
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
describe some problems that u had with automating testing tool?
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
What is test object?