links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
How to write a file
Last updated at 1:14 am UTC on 5 October 2018
 fileStream := FileStream newFileNamed: 'theFileName.txt' asFileName.
 fileStream nextPutAll:  'Some text';cr.
 fileStream nextPutAll:  'Some more text';cr.
 fileStream close.

See also

FileDirectory example: write a file

FileMan (a thin wrapper).