----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 4:54 AM
Subject: Reading files backwards
> Hi Gang,
>
> Got a problem which may help others if there is a solution...
> I need to read the very last line from a file that's 3 - 20MBs large...
> So I tried:
>
> open file blabla for reading
> read from file blabla for -100
> put the result into r
> put it into x
> close file blabla
>
Is this your actual code? If so, maybe there's a syntax problem? Seems like the above
example should be:
open file blabla for reading
-- read the last 100 bytes (or last 99?)
#read from file blabla for -100
read from file blabla at -100 for 100
put the result into r
put it into x
close file blabla
FWIW. I didn't test my suggestion, so be careful!
Phil
> Unfortunately I never got an answer back, MC crashed...
> No result, no error...
>
> I dont want to resort to external programs (tail.exe) to do this...
> Does anyone have a standard scripted solution?
>
> Thanks in advance
> Xavier
>
>
>
> Visit us at http://www.clearstream.com/_focus1.htm
>
> IMPORTANT MESSAGE
>
> Internet communications are not secure and therefore Clearstream International does
>not accept legal responsibility for the contents of this message.
>
> The information contained in this e-mail is confidential and may be legally
>privileged. It is intended solely for the addressee. If you are not the intended
>recipient, any disclosure, copying, distribution or any action taken or omitted to be
>taken in reliance on it, is prohibited and may be unlawful. Any views expressed in
>this e-mail are those of the individual sender, except where the sender specifically
>states them to be the views of Clearstream International or of any of its affiliates
>or subsidiaries.
>
> END OF DISCLAIMER
> _______________________________________________
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard
>
_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard