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 0 1 1 0 0 1 1 1 1 1 1 0 0
  0 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 0 0
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  
  [Collision]
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  0 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 0 0
  0 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 0 0
  0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 
  0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0
  0 0 1 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0
  0 0 1 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0
  0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0
  0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0
  0 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 0 0
  0 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 0 0
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
  </code></pre>
  
  <p>I also have a square on my screen that fills in the tile that my mouse has clicked on. The problem I have is I want to be able to edit the map.txt file by changing a value of it according to where on the map I click. I need to know if there is a way I can access a certain value in the map file, like an array. So for example getting Collision[5][8] or Details[7][17], etc. Thanks!</p>
  
  <p><a href="http://screencast.com/t/gqH18wgW" rel="nofollow">http://screencast.com/t/gqH18wgW</a> (This shows the clicking to find the location)</p>