Page 1 of 1

Reading a file

PostPosted: Aug 18, 2002 @ 6:23pm
by Jay Mattis
Hi everyone,
I know this is more of a C++ question, that PocketFrog, but I figured you guys might be able to help me out anyway. 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.

PostPosted: Sep 10, 2002 @ 5:55am
by Kzinti

PostPosted: Sep 10, 2002 @ 6:02am
by buttcrack

PostPosted: Sep 10, 2002 @ 6:09am
by Kzinti

PostPosted: Sep 10, 2002 @ 9:00am
by refractor