GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2010-Sep-02

Title: saving file score in iphone
Post by: djtoon on 2010-Sep-02
well
i am trying to save an ini file in the documents derectory

no go :(

this is my code

any help will be apriciated:


ok=DOESFILEEXIST(pathtofile)



IF ok
INIOPEN pathtofile
olderscore=INIGET$(color$, "red")

ELSE

KILLFILE pathtofile
INIOPEN pathtofile

INIPUT color$, "red", 0
INIOPEN ""
ENDIF
Title: Re: saving file score in iphone
Post by: MrTAToad on 2010-Sep-02
and how are you setting up pathtofile ?

It should be something like :

Code (glbasic) Select
pathtofile$=PLATFORMINFO$("DOCUMENTS")+"/file.ini"