Set the file position indicator of the FILE stream to the beginning of the file.
- stream
- FILE stream to set file position indicator to the beginning of the file.
Documentation for this section has not yet been entered.
The rewind() function sets the file position indicator for the stream pointed to by stream to the beginning of the file. It is equivalent to:
Stdlib.fseek(stream, 0, SeekFlags.SEEK_SET)
except that the error indicator for the stream is also cleared (see Stdlib.clearerr(3)).
Since rewind() does not return a value, an application wishing to detect errors should call Stdlib.SetLastError((Mono.Unix.Native.Error)0), then call rewind(), and if Stdlib.GetLastError is non-zero, assume an error has occurred.
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0