Saving persistent text file in internal storage
<p>This question his perhaps more a request for some advice how to save some data in the best way. I'm doing an app where I tag images from the device with contacts from the ContactsContract in the device   by saving the filepath for the image together with the selected contact, and by contact, I guess it's enough to save the ID or the name of that contact?</p>

<p>I need some advice how I should use the FileOutputStream to write this data. Should I, and can I save the strings like "filepath, id" for each row in the file or what's the best way? I also need to search if the filepath and contact is already in the file aswell as be able to tag several contacts to an image. First I thought I could use a file for each image and add all the contacts that are tagged with it, but that is perhaps not a good way to do it?! </p>

<p>Preciate some advice! </p>

<p>EDIT:</p>

<p>If I use Shared Preferences then I could use the contacts ID as a key and the image path as the value? Then I can add several unique ID keys with different values? But I guess, I can't add more than one value to a key?</p>
