| || |
What is a command to read a file until end file? is there any command,if any plz give reply
Re: QTP question?
Why don't people use the QTP help file before asking question??
Const ForReading = 1, ForWriting = 2
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.OpenTextFile("c:\testfile.txt", ForReading)
ReadLineTextFile = MyFile.ReadLine ' Returns "Hello world!"
Loop until MyFile.AtEndOfStream