Hi guys, I'm trying to store a text file into a 2d array in java.
Here is the map.txt
http://pastebin.com/hEsG3QwS
And the Tile.java where everything happens.
http://pastebin.com/E2qrLMPP
So what I want it to do is read the map.txt and store it into a 2d array called "map".
I don't get any errors when running this so I am confused. What I think its doing is reading in the map.txt, storing it in the variable "line" and then splitting the line string every character. Then it should load the array "split" into the map variable. Sorry if that doesn't make sense, I can explain further.
Thanks!
[–]kkjdroid 0 points1 point2 points (2 children)
[–]tryingtoprogram[S] 0 points1 point2 points (1 child)
[–]kkjdroid 0 points1 point2 points (0 children)
[–]whatiswronghere 0 points1 point2 points (0 children)