Reading Information to file

If I want to gather information from the user such as Name, score, and date, How would I put this into a file so I could pull it up later? I am new to files so I am having difficulty figuring this out
learncpp.com > topic 13.6, 13.7
Topic archived. No new replies allowed.