OpenFileOutput()method is used to
-
read data from file
-
write data to file
-
Both (1) and (2)
-
None of these
B
Correct answer
Explanation
The openFileOutput() method is used to write data to a file in the app's internal storage. It returns a FileOutputStream. For reading, you would use openFileInput(). These are separate operations - openFileOutput() is specifically for writing, not reading or both.