I have tried searching online to find a solution or some way that I can learn how to read the integer, but alas I have come here to see if any of you guys can help me.
Please & Thank you
public void writetofile() {
try {
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(openFileOutput("intvalue.txt", Context.MODE_PRIVATE));
outputStreamWriter.write(Counter);
outputStreamWriter.close();
} catch (IOException e) {
Log.v("MyActivity", e.toString());
}
}
public int readfromfile() {
int Counter = 0;
return Counter;
}