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.