The line WRITELINE 1, "" works fine on the PC, but the iPad crashes.
filePath$ = PLATFORMINFO$("DOCUMENTS") + "/localhighscoreTest.dat"
COPYFILE "Media/localhighscoreTest.dat", filePath$
OPENFILE( 1, filePath$, FALSE)
WRITELINE 1, "John Doe"
WRITELINE 1, "999"
WRITELINE 1, "01/27/2011"
WRITELINE 1, "" < ----- causing the iPad to crash
CLOSEFILE 1
Original post:
http://www.glbasic.com/forum/index.php?topic=5620.0 (http://www.glbasic.com/forum/index.php?topic=5620.0)
Yes. It's a bug. I fixed it in the next version. So far use:
WRITESTR 1, "\n"