Data Files

Hi guys! I would appreciate any help I can get. I'm supposed to do the following:

Create a data file of the following integers:
10 20 30
17 21 18
30 20 49
40 25 35
55 45 35
25 55 5
-1 -1 -1
Make sure to leave a blank line at the end of the file.

Doing it using sentinel values to mark the end of the file. I have no experience with Files in C++ or sentinel values; so I would really really be thankful for some assistance. Thanks guys!
You can start off by googling how data files work. You can start off by watching youtube tutorials, thenewboston comes to mind. Once you've tried, and showed us some what you have done, we can help out.
Topic archived. No new replies allowed.