Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Code Matlab => Scilab > Equivalences Matlab -> Scilab > F > fseek (Matlab function)

fseek (Matlab function)

Set file position indicator

Matlab/Scilab equivalent

Matlab Scilab
fseek

Particular cases

Scilab and Matlab functions differ by the flag which indicate the origin of the position indicator, see examples below.

Note that order of input value is different.

Examples

Matlab Scilab
% 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")
Report an issue
<< fscanf (Matlab function) F ftell (Matlab function) >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:50:45 CET 2020