[android-beginners] Re: saving data to text file using eclipse

2009-08-12 Thread Saeed
Thank you Jack, It works. On Aug 11, 5:16 pm, Jack Ha wrote: > Context.openFileOutput() opens a private file associated with this > Context's application package for writing and the name of the file to > open can not contain path separators. > > Try this: > >        try { >            File root

[android-beginners] Re: saving data to text file using eclipse

2009-08-11 Thread Jack Ha
Context.openFileOutput() opens a private file associated with this Context's application package for writing and the name of the file to open can not contain path separators. Try this: try { File root = Environment.getExternalStorageDirectory(); if (root.canWrite()){