- Scilab help
- Files : Input/Output functions
- Paths - Filenames
Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
See the recommended documentation of this function
reads lines from an text file
txt = mgetl(file_desc [,m])
a character string giving the file name or an integer giving a logical unit returned by
an integer scalar: a number of lines to read. Default value is -1.
a column vector of strings.
mgetl function allows to read a lines from an text file.
m is omitted or is
-1 all lines till end of file occurs are read.
m is given
mgetl tries to
m lines. This option is useful to
sequentialy read part of a file. In this case if an end of file (EOF)
m lines are read the read lines are
returned (it is possible to check if EOF had occurred using the
meof function) issued.
mgetl allows to read files coming from Unix,
Windows or Mac operating systems.
mgetl supports only UTF-8 and ANSI file encoding.
- mputl — writes strings in a text file
- mclose — closes an opened file
- mfscanf — reads input from the stream pointer stream (interface to the C fscanf function)
- mget — reads byte or word in a given binary format and converts to a double type
- mput — writes byte or word in a given binary format
- mgetstr — reads a character string from a file
- mopen — opens a file in Scilab
- read — matrices read
|Report an issue|
|<< mget||Files : Input/Output functions||mgetstr >>|