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
When to use shared and local object repository?
Is any limitation to xml checkpoints?
How do Parameterization and Data-Driving relate to each other in QTP?
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
How can you handle exceptions in qtp?
Brief the process of testing with UFT?
How can you give wait up to 10 seconds in qtp?
Why bpt?
Can any one send me the QTP Basic Coding Samples?
In qtp, explain what is crypt object
How do you check ticket cost and ticket number in flight application?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
What are the types of object repository in qtp?