[Pharo-users] iterating through an ascii file by line

Camillo Bruni camillobruni at gmail.com
Tue Jul 31 12:30:17 EDT 2012


IMO there are only default methods for iterating over the lines of string

String >> #linesDo:

but most probably this is now what you want :P, so #nextDelimited: is your friend...


On 2012-07-31, at 18:25, Paul DeBruicker <pdebruic at gmail.com> wrote:

> Hi -
> 
> Is there an easy/standard way to open an ascii file and iterate through it line by line?
> 
> 
> I want to put several files contents into their own OrderedCollections and then do awful things to them.  The files are ~500MB each
> 
> 
> Thanks
> 
> Paul
> 





More information about the Pharo-users mailing list