next up previous contents
Next: FPRINTF Formated File Output Up: Input/Ouput Functions Previous: STR2NUM Convert a String   Contents

Subsections

FSCANF Formatted File Input Function (C-Style)

Usage

Reads values from a file. The general syntax for its use is

  [a1,...,an] = fscanf(handle,format)

Here format is the format string, which is a string that controls the format of the input. Each value that is parsed from the file described by handle occupies one output slot. See printf for a description of the format. Note that if the file is at the end-of-file, the fscanf will return



Samit K. Basu 2005-03-16