View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jonas Caspersson Jonas Caspersson is offline
external usenet poster
 
Posts: 3
Default read last line of a file

Hi,
Do you know in advance how the files i structured? eg it's created by you,
or is it a standard text file intended to read?
If not intended to read, i stronly recomend to use an other format like
random acccess ilo text mode.
If you still have to use text mode there is no better way than to loop
through the file untill EOF is reported, maybe LineInput might be faster...

/Jonas

"Mike" skrev i meddelandet
...
Is there a quick way of reading the last line of a plain text file
without having to open it and read each line.

I don't think I can use any of the fancy extensions such as binary mode
or whatever, due to the file being plain text
--
Mike
Please post replies to newsgroup to benefit others
Replace dead spam with ntl world to reply by email