rewind - sets the current read/write position to the beginning of the file
file.rewind()
The rewind()
intrinsic method sets the current
read/write position in a file to the beginning-of-file. A successful
rewind()
will clear the end-of-file indicator and
remove any effect of ungetc()
.
Non-disk-based files (pipes, terminals) may not be rewound.
None
ArgCheck
if arguments are specified
TypeCheck
if file is not a
File
AccessCheck
if
file has been closed
IoCheck
for
general I/O subsystem errors
file.rewind(); // Reset to the beginning-of-file