Im trying to setup a sort of accounts system for a bank and im trying to save customers data into a file then on another menu choice allowing them to read this data again.
They enter their data in another part but here is where it saves using white space to space out the different data.
The problem comes when re opening it and reading the data, if there is a space in the address or name then it will mess up the remaining characters from showing, im guessing because it's broken up with spaces. I've tried changing these to other characters such as a comma but then it doesn't read at all.
if there is a space in the address or name then it will mess up the remaining characters from showing,
Does this mean the space between the first name and last name like John Doe? I recommend seperating each datum with a return character and using getline().
I'm a bit of a newbie at c++ (on hindsight I should of gone to the beginners section maybe opps) would there be an easy way to implement this into the existing code, I'm not sure how getline() is used on an input from a file.