Yes, it works.
Since it is a log file, to show data I used:

>> file: open/binary/seek %/c/temp/listener81.log.old
>> file: tail file
>> file: skip file -1000
>> print to-string copy file

(I found a note about a bug in Rebol regarding /direct param (in year
2005). It seems it was not corrected. Do you know why?
http://www.rebol.net/article/0198.html )

Thank you!


--Alessandro





On 5/20/06, Alessandro Manotti <[EMAIL PROTECTED]> wrote:
> I will try. Thank you!
>
>
> --Alessandro
>
>
>
> On 5/20/06, Gabriele Santilli <[EMAIL PROTECTED]> wrote:
> >
> > Hi Alessandro,
> >
> > On Saturday, May 20, 2006, 9:14:59 AM, you wrote:
> >
> > AM> My idea is opening a port, then go at the end of file, then go back=
 of
> > AM> X bytes (or lines), and read them.
> >
> > To  be  able  to  skip  lines,  /LINES would need to read the file
> > anyway.  I think the best way to do this is use /BINARY/SEEK, then
> > TAIL  works,  and you can skip backwards (i.e. COPY SKIP TAIL FILE
> > -1000  gives  you  the  last  1000 bytes in the file). You need to
> > process lines on your own though.
> >
> > Regards,
> >    Gabriele.
> > --
> > Gabriele Santilli <[EMAIL PROTECTED]>  ---  http://www.rebol.com/
> > Colella Chiara software division --- http://www.colellachiara.com/
> >
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
> >
>
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to