GLBasic forum

Main forum => Bug Reports => Topic started by: PaLe on 2010-Nov-08

Title: PUTFILE with SETCURRENTDIR
Post by: PaLe on 2010-Nov-08
HI,
with the last IDE 8.148 I've this problem, tested on Win SEVEN and iPhone 3G (4.1):

The PUTFILE command save a NEW file in the EXECUTABLE directory instead the path of SETCURRENTDIR command.

Sorry 4 the easy "basic" code...

PaLe

[attachment deleted by admin]
Title: Re: PUTFILE with SETCURRENTDIR
Post by: Kitty Hello on 2010-Nov-09
output GETCURRENTDIR$() with STDOUT and check if that's really it.
On iPhone I'd try PLATFORMINFO$("DOCUMENTS"), anyway.
Title: Re: PUTFILE with SETCURRENTDIR
Post by: PaLe on 2010-Nov-09
Tks Kitty,
I changed the code with GETCURRENTDIR$() ant tested on XP, 7, WinCe, WIZ and work fine except iPhone...  :'(

this evening i'll try with the PLATFORMINFO$("DOCUMENTS") command.

Maybe also GET/PUT INI command because I need and prefer to save the data in the iphone.app path...

Paolo


[attachment deleted by admin]
Title: Re: PUTFILE with SETCURRENTDIR (SOLVED)
Post by: PaLe on 2010-Nov-09
I'm sorry for my Mistake (easy ???)....  :nw:

The program work fine on iPhone!!!

only now I understand where I can ( & I MUST) save the datas on iPhone....
I explored the folder on iphone and checked that it's in the previous of app directory...

kitty,
thanks for help and sugges



[attachment deleted by admin]
Title: Re: PUTFILE with SETCURRENTDIR
Post by: Kitty Hello on 2010-Nov-09
you can't write to .app, nor to .app/Media on iPhone. It's write protected.
Title: Re: PUTFILE with SETCURRENTDIR
Post by: PaLe on 2010-Nov-09
fortunally I understood in time  ;)   ....  ( never  :giveup: )



:offtopic:
O_O how I have to do to close this topic ?