does it have to be text? it may be easier to just use the xml read/ write libraries to do this.
On Jan 24, 11:10 pm, "pramod.deore" <[email protected]> wrote: > Hello everybody , > Actually I am new to android. I want to create a .txt file > programatically, save data to it and then retrieve the data. I had > write one application for that but when I run it it creates file under > data/data/<myPackageName>/files folder , I can see only size of this > file but I can't open it. > > but when I deploy the application on mobile then there is no any file > created. If i supplied path like > > FileOutputStream fOut = openFileOutput("/sdcard/ > deore.txt",Context.MODE_WORLD_WRITEABLE); > > then it throws Exception. > > So, please tell me where the actual file is saved under the phone and > how to open it. > > Thanks -- 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

