next up previous contents
Next: Graphics Up: The IO_matrix_file class Previous: write   Contents

Subsections

read

Syntax

short read(const vector<Matrix> & data);
short read(const vector<Matrix> & data, const vector<string> & data_title);
short read_all(vector<Matrix> & data, vector<string> & data_title);

Description

These member functions read data from a file (specified by the constructor, and opened when first called). read() reads the values corresponding to only one iteration, while read_all() reads the entire file at once.

These member functions are meant to read a file that was written using write().

Return Value

Status, as a short int.
0 successful
IO_DATA_EMPTY
IO_COULD_NOT_OPEN_FILE



Richard Gourdeau 2004-07-06