Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Writing To A File

Author
Message
The Daddy
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location: Essex
Posted: 27th Mar 2013 16:56
Hi All

Before I can set up my web based High Score table, I wanted to get a local one working using a simple text file!

What confuses me is when my app writes a updated high score table it writes it to my windows->documents file, but it reads it from my bin directory (where graphics r stored).

No real problem on my PC but where is this written on my Nexus 7(Android)....I need to read and write at the same place!

Where is the digital?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 27th Mar 2013 17:34
The first time a file is read, AppGameKit looks in the media directory (Tier 1) or the executable directory (Tier 2).

If you then overwrite the file (or create a file with the same name), that file goes in the sand box area for the app. On Windows that is in the Documents area.

Thereafter, any reference to that file will be in the sand box area and the 'media' one (installation area) will be ignored.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
The Daddy
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location: Essex
Posted: 27th Mar 2013 18:40
Thanks again AL!

Where is the digital?

Login to post a reply

Server time is: 2024-11-24 09:50:25
Your offset time is: 2024-11-24 09:50:25