How do I read from or write to a file?

Q How do I read from or write to a file?
A
(FileDirectory default newFileNamed: 'tmp.txt') nextPutAll: 'stuff'; close.
(FileDirectory default oldFileNamed: 'tmp.txt') contents.
Last changed by admin on 21 April 2009