Ok, here's the solution:
inFile>>menuList[counter].menuPrice;
inFile.ignore(10,'\n');
That reads it cleanly. Thanks for the assistance.
This is a discussion on Reading a string from an input file into a structure within the C++ Programming forums, part of the General Programming Boards category; Ok, here's the solution: inFile>>menuList[counter].menuPrice; inFile.ignore(10,'\n'); That reads it cleanly. Thanks for the assistance....
Ok, here's the solution:
inFile>>menuList[counter].menuPrice;
inFile.ignore(10,'\n');
That reads it cleanly. Thanks for the assistance.