Ralph Johnson a écrit :
> On 9/17/06, stéphane ducasse <[EMAIL PROTECTED]> wrote:
>> hi ralph
>>
>> why in your pattern you have block around Stream classes ?
>>
>> Stef
>
> It was a mistake. It was supposed to be a hyperlink, and [] are the
> hyperlink delimiters on WikiWorks, but the code was i
this is what I thought but I did not dare changing the code :)
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
On 9/17/06, stéphane ducasse <[EMAIL PROTECTED]> wrote:
hi ralph
why in your pattern you have block around Stream classes ?
Stef
It was a mistake. It was supposed to be a hyperlink, and [] are the
hyperlink delimiters on WikiWorks, but the code was inside a /pre tag,
so hyperlinks don't work
hi ralph
why in your pattern you have block around Stream classes ?
Stef
On 17 sept. 06, at 01:28, Ralph Johnson wrote:
You could do something like
[aFileStream atEnd] whileFalse: [line := aFileStream nextLine.
Transcipt show: line: cr.]
Alternatively, you could convert your stream of charac
this is free mathieu. This is a pattern.
Use it :)
stef
On 17 sept. 06, at 19:51, Mathieu wrote:
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 chara
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/P
Hi andy
Well back to front it would be
[ :line | Transcript show: line; cr.] value:
aFileStream nextLine .
which should do what you want.
Yours in service, -- Jeorme Peace
>[Newbies] Problems with do:
>andy.burnett at knowinnovation.com andy.burnett at
knowinnovation.com
>Sat Sep
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 c
I need someone to poke me with a clue stick please!
I am trying to step through a file a line at a time. I had the idea that
this should work
aFileStream nextLine do: [ :line| Transcript show: line; cr.].
Unfortunately (as will be obvious to everyone) what it actually does is
print a characte