public void writeArraytofile() {
    try {
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(openFileOutput("array.txt", Context.MODE_PRIVATE));
        outputStreamWriter.write(Arrays.toString(array));
        outputStreamWriter.close();
    } catch (IOException e) {
        Log.v("MyActivity", e.toString());
    }
}
I think I've found how to write an array to a file, but I still do not know how to read one. Can someone show me how it works?
