06-27-2005, 10:02 PM
Could someone tell me how I would get info from a file named "board.brd"? Ok, better explanation. I have a file named "board.brd" that has this in it.
10,10
0,0,0,0,0,0,0,0,0,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,0,0,0,0,0,0,0,0,0
How would I read the contents from this file into a multidimensional array by using the width and height shown at the top of the file (10,10)? Tell me if this is confusing.
10,10
0,0,0,0,0,0,0,0,0,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,1,1,1,1,1,1,1,1,0
0,0,0,0,0,0,0,0,0,0
How would I read the contents from this file into a multidimensional array by using the width and height shown at the top of the file (10,10)? Tell me if this is confusing.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]