Try using FileCompare to compare your file against an empty file. This will give you the number of "new" lines, then you can use FileReadLine to read the last line only (internally it does the same read loop, but it should do it many times faster than in JAL). : Is there a simple way to read in just the last line of a file? The situation : is a log file which contains approx 60 lines of data and I need to put the : last line into a string variable in order to perform some actions based on : data pulled using a GetToken on the string.
|