Reading from files

Started by
0 comments, last by GameDev.net 24 years, 4 months ago
I haven't programmed c++ very much and I have troubles reading info fram a file.

I want the info in an array.

My MAP file looks sth like this:

00000000000
01110000110
01110001110
00000000000

Can anyone please help me and tell me a good way to do it.

// Klas

Advertisement
That's all covered in the on-line help that would have been included in your c++ compiler. Just do a search for writing to a file and it should give you a bunch of examples and explain everything for you.
William Reiach - Human Extrodinaire

Marlene and Me


This topic is closed to new replies.

Advertisement