hello,

i wrote a program that would write in personal details of a person such as their age, sex ,address, name. So far i can make the program save all information into a file.

But the problem is during reading. Since addresses and names have space(s) in between, how can i read the file correctly?? I can't guess how much space a user will enter.

By the way, for characters i always use :

cin.getline

thats why it allows user to key in information with space in between.

Please help?