while (!fin.eof())
{
getline(fin,line);
stringstream s(line);
while (getline(s, word, ','))
{
row.push_back(word);
}
if (RowFound(row))
{
fin << "Pass";
}
}
The problem is that the word "Pass" is deleting chars from next line,
so my question is how can I move the cursor to beginning of line?