6 ifstream f( filename.c_str() );
7 while (getline( f, s )) {
9 istringstream iss( s );
10 while (getline( iss, s,
',' )) {
11 float fieldvalue = 0.0f;
12 istringstream( s ) >> fieldvalue;
13 record.push_back( fieldvalue );
15 this->push_back( record );
22 ofstream f( filename.c_str() );
32 outs << ((fi == ri->begin()) ?
"" :
", ") << *fi;
bool load(const string &filename)
deque< deque< float > >::iterator record_iterator
bool save(const string &filename)
deque< float >::iterator field_iterator