while(getline(fileIn,line))
{
fileOut <<line<<endl;
}
while(getline(fileIn,line))
{
if(fileIn.eof())
break;
fileOut <<line<<endl;
}
i have tried both piece of code and it still reads past and does not break. can anyone tell me why?
I am just reading from file and writing to it.
thank