I am attempting to read a record from a (.txt) file. The layout is:
I am using the code block below:
//get the next read of the file
masterFile >> ID;
masterFile.get( name, 21, '\n' );
masterFile>> payRate >> dependents >> eType;
The question is the "get" function does not work, it returns nothing. When this happens the rest of the read is messed up. Could someone tell me how to get this get to work. I must use the get function please do not suggest other methods.