Commit 590901d0 authored by chris.crook's avatar chris.crook

> adding load / save

parent fc988d22
......@@ -32,6 +32,14 @@ public class MainActivity extends AppCompatActivity {
Toast.makeText(getApplicationContext(), temp + " ", Toast.LENGTH_LONG).show();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "read error", Toast.LENGTH_LONG).show();
try{
FileWriter stream = new FileWriter(file1, false);
stream.write(" ");
stream.close();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "write error", Toast.LENGTH_LONG).show();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment