Set file position indicator
fseek
mseek
Scilab and Matlab functions differ by the flag which indicate the origin of the position indicator, see examples below.
% File beginning: fseek(fid,offset,'bof') fseek(fid,offset,-1) % Current position: fseek(fid,offset,'cof') fseek(fid,offset,0) % File end: fseek(fid,offset,'eof') fseek(fid,offset,1)
// File beginning: mseek(offset,fid,"set") // Current position: mseek(offset,fid,"cur") // File end: mseek(offset,fid,"end")