I can create, delete and read/write files using Context.deleteFile(),
Context.openFileOutput(), Context.openFileInput. However there appears
to be no way to rename a file. The reason I want to do this is because
I have a routine that rewrites a data file when things change. Since
it creates it from scratch, I first delete the old one, then write the
new one. But I don't want everything to be lost in the off chance that
there is an IOException. Ideally, I would write the new file to a temp
name, then once it was successful delete the old one and rename the
new one to the original name. But with no rename functionality, this
seems to be impossible.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to