
Handling External Files É 119
number of elements that can be read from the file. If it is not specified, then the entire file is
considered. Valid entries for size are as follows:
1. N: read at most N elements into a column vector
2. Inf: read at most to the end of the file
3. [M,N]: read at most M * N elements filling at least an M-by-N matrix, in column order.
N can be inf, but not M
The combination [A, count] is a vector returned by fscanf(), the first element of which
is a matrix A, holding all values read from the file. The second element count is the number of
items read from the file. count is optional.
4.9.4 Closing a File
After opening and ...