FUNCTION REFERENCE
fseek
Move to a position in a file.
Move to a position in a file.
Syntax
status = fseek(fid, offset, origin)origin is 'bof' (or -1), 'cof' (or 0) or 'eof' (or 1). Returns 0, or -1 when the
new position would be before the start or after the end; the position then stays.
Example
fseek(fid, -3, 'eof') % 0, three bytes before the endThese are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.