How do i make my program record spaces?

Im making a Vocabulary study program.I want it the user to put the word's name and definition.When the person types space then everything after that isnt recorded.Im using the Fstream library and saving the data to a txt file.
Not using getline?
Oh i feel like an idiot.I was unaware of it.Thanks
Topic archived. No new replies allowed.