<< fprintf 5-4-1 sscanf >>
removed >> removed > 5-4-1 > fscanf

fscanf

Converts formatted input read on a file

Calling Sequence

[v_1,...v_n] = fscanf (file, format)

Arguments

format

Specifies the format conversion.

file

Specifies the input file name or file number.

Description

The fscanf functions read character data on the file specified by the file argument , interpret it according to a format, and returns the converted results.

The format parameter contains conversion specifications used to interpret the input.

The format parameter can contain white-space characters (blanks, tabs, newline, or formfeed) that, except in the following two cases, read the input up to the next nonwhite-space character. Unless there is a match in the control string, trailing white space (including a newline character) is not read.

See Also

History

VersionDescription
5.4.1 fscanf was published up to Scilab 5.4.1. It is replaced with mfscanf.

<< fprintf 5-4-1 sscanf >>