openFileOutput("textfile.txt", MODE_PRIVATE);
method untuk membuat file txt dengan nama textfile.txt sesuai yg terdapat di parameternya, dengan mode private / default.
OutputStreamWriter(fOut);
Class yg di panggil untuk mampilkan file text dgn parameter variabel berisi methodopenFileOutput().
openFileInput("textfile.txt);
method untuk membuka file txt dengan nama textfile.txt sesuai yg terdapat di parameternya.
InputStreamReader(fIn);
Class yg di panggil untuk mamasukkan file text dgn parameter variabel berisi methodopenFileInput().
MODE_PRIVATE
Mode pembuat File: mode awal atau default dimana saat membuat filenya hanya dapat dilakukan dengan memanggil aplikasi.
MODE_APPEND
Digunakan dengan method openFileOutput(String, int), jika file yg hendak kita buat sudah ada maka menuliskan data sampai akhir dr file yg ada bahkan menghapusnya.
MODE_WORLD_READABLE
This constant was deprecated in API level 17. Creating world-readable files is very dangerous, and likely to cause security holes in applications. It is strongly discouraged; instead, applications should use more formal mechanism for interactions such as ContentProvider, BroadcastReceiver, and Service. There are no guarantees that this access mode will remain on a file, such as when it goes through a backup and restore. File creation mode: allow all other applications to have read access to the created file.
MODE_WORLD_WRITEABLE
This constant was deprecated in API level 17. Creating world-writable files is very dangerous, and likely to cause security holes in applications. It is strongly discouraged; instead, applications should use more formal mechanism for interactions such as ContentProvider, BroadcastReceiver, and Service. There are no guarantees that this access mode will remain on a file, such as when it goes through a backup and restore. File creation mode: allow all other applications to have write access to the created file.

