Jump to content
  • Advertisement
Sign in to follow this  

Read Data from Txt file

This topic is 3120 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
Sign in to follow this  

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!