View Single Post
  #3   Spotlight this post!  
Unread 05-08-2011, 11:20
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: File Reading and Writing

I can assume you are trying to do this: load configuration in static files bundled in the jar, then change configuration data later?

If my wild guess is correct, I would use the bundled files as defaults, and then copy them out of the jar into the flash FS. Then, when the jar loads it can check the FS and either A) load the default if an existing config doesn't exist, B) leave it alone, or C) selectively replace components based on some method you figure out. Your app can then load off the local config rather than the bundled one.

iPhone apps often do things like this as bundled files are code signed and therefore non-writable.
Reply With Quote