Help. Anyone tell me why this code outputs 7 lines (the last line twice) while the file contains 6 lines?
cout << "read msgfile\n";
ifstream msgfile ("script1.msg");
while (msgfile.good()) //if not at end of file, continue reading
// load vector with deffile
msgfile >> line;
cout << line << "\n";
Cheers and tx