Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Reading a file into a string
Last updated at 6:52 pm UTC on 6 March 2017
(from: email by Göran Hultgren)

Newbie tip: Reading in a file in a String. (The path should be expressed as expected on your OS.)
  | myString |
  myString := (FileStream readOnlyFileNamed: 'd:\file.txt')
                    contentsOfEntireFile