Hi,
I need to read last lines of a BIG (more than 400Mb!) file. It is a log fil=
e.
I wanted to create a small console application similar to "tail"
command in Unix (with such command I can see last lines of a file,
then I can get the most added lines in real-time).

I used "open/lines/direct" but I know the file-size, not how many
lines are inside the file.

My idea is opening a port, then go at the end of file, then go back of
X bytes (or lines), and read them.
But I cannot find a way to go to the end of file ("skip" wants a
Jump-amount... but I don't know such amount of lines).

Can you help me?

Example:

>> file: open/lines/direct %/c/temp/listener81.log.old
>> file: tail file
>> file: skip file -10 ; rows? bytes?
>> print copy file

.....
.....
.....



--ALessandro
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to