I'm trying to use string variables with the fstream getline() and getting a conversion error.
I need to use fstream for file input, but I also need to allow for spaces in my variables. the file I am calling is a fixed length file, so when I determine my variables from the file call it seperates the variables at any white space it encounters.
if I use getline, I can't seperate the different variables according to the fixed lengths, can I?
I tried using the .substr() and keep getting conversion errors?
Please help, this is driving me nuts!