> On 03 Dec 2014, at 19:14, [email protected] wrote: > > > Hi all, > > How do you terminate a string in Smalltalk so that it can be written to a > file? > > Thanks, > > Sheridan
[ this is a question for pharo-users ] I don't understand the question, what is 'terminate a string' ? Here is how you write to a file: 'myfile.txt' asFileReference writeStreamDo: [ :out | out nextPutAll: 'Hello World!' ]. If you want a line end, you can do 'myfile.txt' asFileReference writeStreamDo: [ :out | out nextPutAll: 'Hello World!'; cr ]. There is also #lf and #crlf. It is also possible to do line end conversions. What are you trying to do, what does not work ? Sven
