std::ftell

From Cppreference

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

long ftell( FILE *stream );

Returns the file position indicator for the file stream stream.

[edit] Parameters

stream - file stream to examine

[edit] Return value

file position indicator on success or EOF if failure occurs.

[edit] See also

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