GLBasic forum

Main forum => Bug Reports => Topic started by: Millerszone on 2011-Jan-28

Title: WRITELINE 1, "" crashing iPad
Post by: Millerszone on 2011-Jan-28
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 (http://www.glbasic.com/forum/index.php?topic=5620.0)
Title: Re: WRITELINE 1, "" crashing iPad
Post by: Kitty Hello on 2011-Jan-28
Yes. It's a bug. I fixed it in the next version. So far use:
WRITESTR 1, "\n"