[newbie] How do you save to a file?

Bolot Kerimbaev bolot at cc.gatech.edu
Mon Apr 19 22:08:20 UTC 1999


On Mon, 19 Apr 1999, Roland of Gilead wrote:
> I've been poking around learning and was trying to save to a file. How?
Here's an example:

| file |
file := FileStream fileNamed: 'myfile.txt'.
file open.
file nextPutAll: 'Some string'.
file close.

> What is the best text for learning Squeak?
There's an online tutorial, can't remember the URL, will send soon.

> I like when I have a paper book to lean from.
I may be revealing a top secret info, but somebody is writing a Squeak book.

Bolot





More information about the Squeak-dev mailing list