This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Reading a file


Reading a file

Postby Jay Mattis » Aug 18, 2002 @ 6:23pm

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.
Jay Mattis
pm Member
 
Posts: 66
Joined: Jan 12, 2002 @ 5:50pm
Location: NY


Postby Kzinti » Sep 10, 2002 @ 5:55am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby buttcrack » Sep 10, 2002 @ 6:02am

buttcrack
 


Postby Kzinti » Sep 10, 2002 @ 6:09am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby refractor » Sep 10, 2002 @ 9:00am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum