[File] readBytes: [Number]. | Manual

[File] readBytes: [Number].

Reads a number of bytes from the file.

 f := File new: '/path/to/file.txt'.
 f open: 'r+'.
 x := f readBytes: 10.
 f close.

 The example above reads 10 bytes from the file represented by f
 and puts them in buffer x.

back to homepage
back to manual menu

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