[File] rewind. | Manual

[File] rewind.

Rewinds the file. Moves the file pointer to the beginning of the file.

 file open: 'r'.
 x := file readBytes: 10. #read 10 bytes
 file rewind.        #rewind, set pointer to begin again
 y := file readBytes: 10. #re-read same 10 bytes

 The example above reads the same sequence of 10 bytes twice, resulting
 in variable x and y being equal.

back to homepage
back to manual menu

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