|
Re: Problems with do:: msg#00110lang.smalltalk.squeak.beginners
Ralph Johnson a écrit : > You could do something like > [aFileStream atEnd] whileFalse: [line := aFileStream nextLine. > Transcipt show: line: cr.] > > Alternatively, you could convert your stream of characters into a > stream of lines. I described something similar in > http://wiki.cs.uiuc.edu/PatternStories/FunWithStreams but it created a > stream of words instead of a stream of lines. Read that, and you > should be able to make a LineStream pretty easily. > > -Ralph Johnson > _______________________________________________ > Beginners mailing list > Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx > http://lists.squeakfoundation.org/mailman/listinfo/beginners Thanks Very cool :) Do you mind if I use it for reading token in the NewCompiler? Math
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 3.9 DVD, Chuck Smith |
|---|---|
| Next by Date: | Re: Problems with do:, stephane ducasse |
| Previous by Thread: | Re: Problems with do:, Ralph Johnson |
| Next by Thread: | Re: Problems with do:, stephane ducasse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |