help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Writing to a File


From: Stewart Stremler
Subject: Re: [Help-smalltalk] Writing to a File
Date: Sun, 23 Jan 2005 01:21:37 -0800
User-agent: Mutt/1.3.28i

begin  quoting Isaac Gouy as of Sat, Jan 22, 2005 at 11:58:30PM -0800:
> Stewart, 
> 
> afaict the code is doing what you want using stdout - is that correct?
 
Correct.  That's partly why I was so confused.

> You probably want to use the methods in class File (not those in
> FileDescriptor).
> 
> bar := (File name: 'bug_output') writeStream.
> 
> Does that do what you want?

Yup. Great. Thanks.

But I still don't understand (esp. from the documentation) why
the other approach failed in the way that it did. :-/

> Note there are some more GST programs on the old shootout webpage
> http://shootout.alioth.debian.org/old/benchmark.php?test=all&lang=gst&sort=cpu

Cool. That's bookmarked now too. :)

-Stewart




reply via email to

[Prev in Thread] Current Thread [Next in Thread]