Managing level data in .txt file

Monkey Targets Forums/Android/Managing level data in .txt file

degac(Posted 2011) [#1]
This is not a bug report, but a note.
After some test I've found that Android and txt file containing ONLY number, bring to problem.

I've made a text file like this one
000123000
000123000
000123000
000123000

every time I run my program on the emulator, I get an exception and an error.
The solution is to change the file like this
[LEVEL]
000123000
000123000
000123000
000123000


Putting the 'string' [LEVEL] (or any other character combination) seems to resolve any problem.


Xaron(Posted 2011) [#2]
Hmm... I use some comma separated lists with numbers which works good. Thanks for notifying!


therevills(Posted 2011) [#3]
Sounds like a bug to me...


degac(Posted 2011) [#4]
Of course I tried now and it works with and without the "[LEVEL]" string at the top... awh.
This morning I spent 1 hour to track down what I believe was the error, now everything is Ok.
So nothing important here to read...