WRITELINE 1, "" crashing iPad

Previous topic - Next topic

Millerszone

The line WRITELINE 1, "" works fine on the PC, but the iPad crashes.

Code (glbasic) Select

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
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Kitty Hello

Yes. It's a bug. I fixed it in the next version. So far use:
WRITESTR 1, "\n"