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

File reading


File reading

Postby Jay Mattis » Aug 18, 2002 @ 9:06pm

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


Postby Dan East » Aug 19, 2002 @ 4:09am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Jay Mattis » Aug 21, 2002 @ 7:47pm

Jay Mattis
pm Member
 
Posts: 66
Joined: Jan 12, 2002 @ 5:50pm
Location: NY


Postby Dan East » Aug 21, 2002 @ 7:55pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby TechMage » Sep 10, 2002 @ 11:36am

"Everybody loves Dan," a new ABC comedy show, premering Sept 18, 2002.

I laughed, I cried, I learned C++. This is the best damn show ever! God bless you ABC! -Martha Stewert

Ae ure do alote of f***ing cursing on that f***ing owe! I f***ing oved it! -Ozzy Osbourne

Very informative. If we had the money we would buy this show from ABC. But, we can only afford dumb and annoying computer nerds. *sigh* -CEO of TechTV
User avatar
TechMage
pm Insider
 
Posts: 2223
Joined: Sep 16, 2001 @ 5:40pm
Location: In Your Head


Postby sponge » Sep 10, 2002 @ 12:54pm

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby Dan East » Sep 10, 2002 @ 2:35pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


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