Hi everyone,
I've never really done much file I/O with C++ and I was hoping someone could help me with this. I want to read a file that looks like this:
-1
-1
0
0
0
-1
0
etc.
How can I open that file, and then read the numbers in one by one into integers? Basically, I just need to know how to open the file and read it such that I can read one line at a time and convert it into the proper integer. Can anyone help me?