Newb question: what is the best way to get a char iterator over a text file?
I tried:
std::fstream csvSource (fileName);
auto aChar = csvSource.begin();
while (aChar != csvSource.end())
{
switch (*aChar)
{
case '"':
//and so on
but the compiler complains that fstream
doesn't have a begin method.
Note, that I can't do it line-by-line, because newline characters that are within quotes are treated differently (literaly) than the other new line characters.