I think what you want is Context.openFileOutput()
. (Activity extends Context, so you could call this from within an Activity, for instance.)
Incidentally, you should use Environment.getExternalStorageDirectory()
instead of something like "/sdcard"