🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Reading from files

Started by
0 comments, last by GameDev.net 24 years, 7 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