[REBOL] Reading a file line by line Re:(3)

2000-02-24 Thread mjelinek
EMAIL PROTECTED] Subject: [REBOL] Reading a file line by line Re:(2) I have been reading really large files using this setup; file: read/lines %filename foreach line file [do stuff] This seems to work well, however what is the limitation. What are the limitations on such a read, doe

[REBOL] Reading a file line by line Re:(3)

2000-02-24 Thread ralph
Just read/lines %filename will cause REBOL to crash and burn on large files, as I found out the hard way (the way I usually do find out stuff). I wrote some beautiful scripts to monitor various logs on my server using read/lines on files. Was very proud of meself, as they worked very slickly. Then

[REBOL] Reading a file line by line Re:(2)

2000-02-24 Thread prowsef
I have been reading really large files using this setup; file: read/lines %filename foreach line file [do stuff] This seems to work well, however what is the limitation. What are the limitations on such a read, does the entire file get read into memory when issuing the read/lines comma

[REBOL] Reading a file line by line Re:

2000-02-24 Thread ralph
> I need to read a BIG text file line by line but I > don't know exactly how to do. > > As I understand the following will read the entire > file to a list of lines and that is not what I want. > > lines: read/lines %textfile > > I want to read one line, process it before reading > the next line

[REBOL] Reading a file line by line Re:

2000-02-24 Thread Al . Bri
Peter wrote: > I need to read a BIG text file line by line but I don't know exactly how to do. Use a port, Peter. Look in "Ports Access to Files", from the REBOL manual, here: users-guide\users\filports.html Of course, your directories may vary, but there's a copy at the REBOL site. And