41 _stream_in =
new fstream() ;
48 if( _stream_in->is_open() )
61 _filepath = filepath ;
62 _stream_in->open( filepath.c_str(), fstream::in ) ;
63 if( !(_stream_in->fail()) && _stream_in->is_open() )
77 if( !(_stream_in->bad()) && !(_stream_in->is_open()) )
88 return _stream_in->eof() ;
94 _stream_in->seekg( ios::beg ) ;
103 getline( *_stream_in, line ) ;
111 << (
void *)
this <<
")" << endl ;
bool open(const string &filepath)
static void split(const string &str, char delimiter, vector< string > &tokens)
Splits a string into separate strings based on the delimiter.
void get(vector< string > &row)
static ostream & LMarg(ostream &strm)
virtual void dump(ostream &strm) const
dump the contents of this object to the specified ostream