That's the reading and writing TextFile code below thru search the QTP help:
Const ForReading = 1, ForWriting = 2
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
MyFile.WriteLine "Hello world!"
MyFile.WriteLine "The quick brown fox"
Set MyFile = fso.OpenTextFile("c:\testfile.txt", ForReading)
ReadLineTextFile = MyFile.ReadLine ' Returns "Hello world!"
i'm trying to read the contents of a text file (.log file actually), but all i get from the web are parsing scripts for .csv and xls files. Hmm.. I'll use this script you gave here, thanks thanks. I'll update on the results afterwards