PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Reading a file

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.
Moved this message from PocketFrog's forum... You might have more success here =)
did it ever occur to you to look at the iostream class you assmonkey
lol @ buttcrack...

There is no IOStreams available on PocketPCs. Even STLport won't compile due to issues with file handles on WinCE 3.0.

Stupid remark... From someone (a guest?) who didn't know jack.