Take the 2-minute tour ×

I'm making an app that has a listview with a child listview for each parent listview item. The children have a few children items as well. You can add/delete an element from any of these lists. I'm concerned that using MODE_APPEND will be a difficulty because I'm assuming it just appends to the end of the file and I actually want the elements to be grouped together in the file. I'm doing all of this to make sure that the data is available upon the application being destroyed and reopened. I'm also worried that MODE_APPPEND isn't private like MODE_PRIVATE is.


share|improve this question
That's a file system constant, for adding to the end of a file. It has nothing to do with listviews. And no, you can't use it if you want to write anywhere other than the end of a file. –  Gabe Sechan Jan 20 '13 at 18:24
I'm just telling you about the listviews so you can understand the data structure –  Tyler Pfaff Jan 20 '13 at 18:28

1 Answer 1

up vote 1 down vote accepted

I wouldn't use MODE_APPEND. There shouldn't be no security concerns about that, but it should be easier to handle (group by datatypes, ...) the data by reading and writing the file each time.

Another possibility could be using SQLite as database for storing these values.

share|improve this answer

Your Answer


