Advertisement

Reading from files

Started by December 02, 1999 01:30 PM
0 comments, last by GameDev.net 24 years, 9 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

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