Oh yeah, I'm "using namespace std;" if that matters. So it's really <fstream> and not <fstream.h>
Everything seems pretty clear until the while loop.
Code:
while (fin.getline(line, 255))
{
if(2 == count++)
{
// it's the days, alter that..
}
fout << line;
}
Is this what parses to the second line of the file? As far as I can tell, what this does is open the Name file, look for an int which is one more than count and write it to a temp file.
In the if statement, does the "2" represent the second line of the file? I also don't quite get why the comment is in brackets.
I'm grateful for the help, and thanks for being patient.