[File] read | Manual

[File] read

Reads contents of a file. Send this message to a file to read the entire contents in one go. For big files you might want to prefer a streaming approach to avoid memory exhaustion (see readBytes etc).
Usage:


 data := File new: '/path/to/mydata.csv', read.

 In the example above we read the contents of the entire CSV file callled mydata.csv
 in the variable called data.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.