Help, problem with open file (create and append) under iPhone

Previous topic - Next topic

Neurox

I'm going crazy out.  :S
My last application for iPhone use a file for configuration.
Open the file for reading record, function well
but when I going to save o append record the GETLASTERROR$() return this:
0003 no such file. This is impossible because before the save/append I made a
control to file exist. And obviously the file exist!   :(
Someone can give me a solution?

Thank in advance

Paolo/Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

MrTAToad


Neurox

'Media' directory with all files of application.
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Ian Price

I don't think you can save to the Media file of your app. on iDevice.

You have to use something like this -
Code (glbasic) Select

GLOBAL save_config$
save_config$=PLATFORMINFO$("DOCUMENTS")+"/yourprogram.dat"

OPENFILE (1,save_config$,FALSE)
...
...
...
CLOSEFILE 1
I came. I saw. I played.

Neurox

Thanks Ian!  :enc:
I have implemented this function and now everything works.  =D =D
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it