Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Read Line XML File

$
0
0
So I'm creating a Windows Phone game in XNA (Just messing atm, seeing how I find it) and I've run into a problem.
First of all, it turns out you can user StreamReader to read text files (Insane).
Which lead me to using XML, of which I have 0 experience, so I'm kinda stumped.

I want to be able to go through and read the lines in the file, depending on the character it reads in each position, will depend on what is drawn on the screen (Just a simple tile map using 2D string array)

Here is my XML (In case you're interested)
<?xml version="1.0" encoding="utf-8" ?>
<XnaContent>
  <Asset Type="System.String">
    <data>
      000000
      1----1
    </data>
  </Asset>
</XnaContent>



Soo yeah, suggestions on reading it line-by-line?

Thank you (:

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>