std::rewind

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

void rewind( FILE *stream );

Moves the file position indicator to the beginning of the given file stream. EOF and error flags are also cleared.

[edit] Parameters

stream - file stream to modify

[edit] Return value

(none)

[edit] See also

fseek
moves the file position indicator to a specific location in a file
(function)