Author Topic: WRITELINE 1, "" crashing iPad  (Read 1062 times)

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
WRITELINE 1, "" crashing iPad
« 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
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10762
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: WRITELINE 1, "" crashing iPad
« Reply #1 on: 2011-Jan-28 »
Yes. It's a bug. I fixed it in the next version. So far use:
WRITESTR 1, "\n"