Hit a bump again. Heres the part of my program thats not going according to plan. with my inputted file i want it to output it exactly the same, then output another copy but in all caps. As of now, it outputs a regular line, then a cap line then regular line and so on . Any help is appreciated
Code:while( inFile)
{
getline(inFile, x);
cout << x << endl;
outFile << x << endl;
for (int i = 0; i < x.length(); i++)
{
cout << (char)(toupper(x.at(i)));
outFile << (char)(toupper(x.at(i)));
}
}