>Paolo:
>
>When using open/direct you need to use a little different technique in
>pulling out data from a file. For example, I've written a program when
>checks my server's log files (sometimes they get to tens of megabytes long)
>for downloads on the eBAY images we host. I do it like this:
>
>referlog: open/direct/read/lines %referer_log
>
>while [ ( line: pick referlog 1 ) <> none ] [
>       refers: refers + 1
>       if find line "cgi.ebay.com" [ebay: ebay + 1]]
>
>
>close referlog
>
>
>
>And that seems to work pretty well. Hope that helps.
>
>Best,
>
>--Ralph Roberts
>

Thank you Ralph,

this is a nicer solutions than the one I found by myself.
BTW, a quick probe on fp: open/read/lines %file.txt showed me that 
the refinement "/direct" is necessary to avoid the loading of the 
file's content in memory.
Greetings
-- 
Paolo Russo
[EMAIL PROTECTED]
_________________
PERD s.r.l.
Virtual Technologies for Real Solutions
http://www.perd.com

Reply via email to