1
.TH mgetl 1 "April 2000" "Scilab Group" "Scilab Function"
4
mgetl - read lines from an ascii file
7
txt=mgetl(file_desc [,m])
12
:a character string giving the file name or a logical unit returned by mopen
15
: an integer scalar. Default value is -1.
18
: a column vector of string
20
\fVmgetl\fR function allows to read a lines from an ascii file.
23
omitted or is \fV-1\fR all lines till end of file occurs are read.
25
If \fVm\fR is given \fVmgetl\fR tries to read exactly m lines, if an
26
end of file occurs before \fVm\fR lines are read an error is
27
issued. This option is useful to sequentialy read part of a file
31
\fVmgetl\fR allows to read files coming from Unix, Windows, or Mac
36
mgetl('SCI/scilab.star',5)
38
mgetl SCI/macros/elem/and.sci
40
fd=mopen('SCI/scilab.star','r')
45
mputl, mclose, mfscanf, mget, mgetstr, mopen, read