Thursday, July 15, 1999
This is the README file for the Csv class.
Basically, Csv stabds for "comma-separated values." All this class does, is take a string, like:
"foo",1,1.485,"la lalala","poit"
and allows you to either access the fields in a C-like way:
for(i=0; i < csv.GetNField(); i++)
cout << "field[" << i << "] = '" << csv.GetField(i) << "'\n";
or a C++-like way:
for(Csv::iterator it = csv.begin(); it != csv.end(); ++it)
cout << "field[" << i++ << "] = '" << (*it) << "'\n";
See the csv_test.cxx program for more examples.
---
There are two Makefiles. Makefile.sa is used for when you want to compile this code module as a stand-alone project. Makefile.am is used by automake when this code module is part of a greater application.
