mgetl — read lines from an ascii file
txt=mgetl(file_desc [,m])
a character string giving the file name or a logical unit returned by mopen
an integer scalar. number of lines to read. Default value is -1.
a column vector of string
mgetl
function allows to read a lines from an ascii file.
If m
is
omitted or is -1
all lines till end of file occurs are read.
If m
is given mgetl
tries to read exactly m lines. This
option is useful to sequentialy read part of a file. In this case if
an end of file (EOF) occurs before m
lines are read the read lines are
returned (it is possible to check if EOF had occured using the meof
function) issued.
mgetl
allows to read files coming from Unix, Windows, or Mac
operating systems.