We Recommend

Smalltalk, Objects, and Design Smalltalk, Objects, and Design
This reference and text treats the Smalltalk programming system and the web of object-oriented ideas within and around it. Thus it is more than a guide to the language; it also examines Smalltalk in its technical and historical setting, and along the way addresses the questions that every Smalltalk developer sooner or later naturally wonders about.


Posted By

jarnaldich on 04/16/08


Tagged

file smalltalk


Versions (?)


File slurping in SmallTalk


Published in: SmallTalk 


Reading the contents of a whole file as a string.


  1. FileStream readOnlyFileNamed: 'file.txt'
  2. do: [:file | file contentsOfEntireFile]

Report this snippet 

You need to login to post a comment.