[android-developers] Re: creating and writing files

2008-12-03 Thread Mark Murphy
alexdonnini wrote: Hello, Using a call such as new FileWriter(/data/+fileName) causes an IO exception. Because that's not a good spot for you to be putting your own data. Use Context#getFilesDir() to find the base directory for data storage for your application, or write them to a

[android-developers] Re: creating and writing files

2008-12-03 Thread alexdonnini
Hi Mark, Thanks for the quick reply and the pointer. I replaced new FileWriter(/data/+fileName) with openFileOutput(fileName, 0) it worked as openFileOutput writes into files (or creates them if they do not exist) in an application's private storage space. The documentation for getFilesDir