Jump to content
  • Advertisement
Sign in to follow this  
boehmz

Read Data from Txt file

This topic is 3208 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to create a tile based map with the map data stored in a file the program will read the data one unit at a time and store the char in an array of files example: file1.txt "wwwggww" in the program I want to do something like: file.open("file1.txt"); for (int i = 0; i < 7; i++) file >> tiles; I don't know how to do this in C#

Share this post


Link to post
Share on other sites
Advertisement
thanks, the streamreader part through me off. I was looking for methods under filestream and wasn't finding it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!