newbie1983
Programmer
Hi i was wondering if there is an alternative of reading in a text file line by line. Below is some code that works well but not very efficient. Any Ideas?
Kind Regards,
Hinesh
Set File = ofs
penTextFile("c:\logs\" & Device & "_ping_status.txt"
For i = 1 To 3
DatafromFile = File.ReadLine
Next i
DatafromFile = File.ReadLine
Status = Left(DatafromFile, 5)
Kind Regards,
Hinesh
Set File = ofs
For i = 1 To 3
DatafromFile = File.ReadLine
Next i
DatafromFile = File.ReadLine
Status = Left(DatafromFile, 5)