Hi,

I think this will store the file as data/data/<app-package-name>/<file-
name-specified>

On Jul 6, 12:42 pm, Abhyudai Shanker <[email protected]>
wrote:
> Hey guys,
>
> M trying to write a file using openFileOutput, using the following snippet:
>
>               // open myfilename.txt for writing
>               OutputStreamWriter out = new
> OutputStreamWriter(openFileOutput("myfilename.txt",0));
>               // write the contents on mySettings to the file
>               out.write(sa_lt);
>               // close the file
>               out.close();
>
> I have to use this file, myfilename.txt, later in my native code. To
> reference it I must know it's path.
>
> Anyone knows where does openFileOutput create the file and if it can be
> opened in my native code using the path, as in would there be any permission
> issues.
>
> Please guide me
>
> Abhyudai

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