Hello,

The docs say:
 "MODE_WORLD_READABLE File creation mode: allow all other applications
to have read access to the created file."

So I can do this:

public void writeTextFile() {
        String FNAME = "test.txt";
        String CONTENT = "Write this test string to test.txt file";

        FileOutputStream fOut = null;
        OutputStreamWriter osw = null;
        try{
                fOut = openFileOutput(FNAME, Context.MODE_WORLD_READABLE );
                osw = new OutputStreamWriter(fOut);
                osw.write(CONTENT);
                osw.close();
                fOut.close();

        }catch(Exception e){
                e.printStackTrace(System.err);
        }
    }


Now, how do I READ it from ANOTHER application?

Thanks for your help.

-- 
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

Reply via email to