[AccessD] A2003:Read the last line of a text file

Darren D darren at activebilling.com.au
Mon Dec 1 16:25:03 CST 2008


Hi Team

 

We have an external tool that 'does stuff' - And the results of the stuff it
does can be output to a text file. Cool 

So I can call this tool with my access app and pass all the necessary parameter
to make this thing work. 

The log and results etc are written to a text file and the bit I need is on the
last line of that text file - Success/Failure or otherwise

 

Does anyone have code to read the last line of a text file - the text file grows
and shrinks so a fixed position read won't work.

I do have an example (that use predictions about the line length etc) that works
about 50 percent of the time - It needs to work all the time

 

Many thanks in advance

 

DD

 




More information about the AccessD mailing list