Main Content
fseek
Move file position pointer to specified position in file
Description
Examples
Input Arguments
Tips
If a file has
n
bytes of data, then thosen
bytes are in positions0
throughn-1
.
Alternatives
To move to the beginning of a file, call
frewind(fileID)
This call is identical to
fseek(fileID, 0, 'bof')