saving file score in iphone

Previous topic - Next topic

djtoon

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

MrTAToad

and how are you setting up pathtofile ?

It should be something like :

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