Forum Discussion
AlexanderM
Staff
14 years agoHi,
Set the cursor position to the beginning of the needed line and use the aqTextFile.ReadLine or VBScript native ReadLine method:
LineNumber = 7
Set myFile = aqFile.OpenTextFile("C:\1.txt", aqFile.faRead, aqFile.ctANSI)
myFile.SkipLine(LineNumber - 1)
Log.Message(myFile.ReadLine)