Using string as array
BlitzMax Forums/BlitzMax Beginners Area/Using string as array
| ||
I'm loading my level data from a file and I plan to store this in a C-style string/character to traverse through with all kinds of ugly loops and things to get the data. How can I be able to do this: For a = stuff stuff = stuff[a] Next |
| ||
Global data:String = "ABCDEFGHIJKLMNOP1234567890" For Local i:Int = 0 To data.length-1 Print data[i..i+1] Next |
| ||
Oh.... yeah!! Thanks. |