Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void save(FileIO files){
- BufferedWriter out = null;
- try {
- out = new BufferedWriter(new OutputStreamWriter(files.writeFile(".pirat")));
- out.write(Boolean.toString(soundEnabled));
- for (int i = 0; i < 5; i++) {
- out.write(Integer.toString(highscores[i]));
- }
- } catch (IOException e) {
- }
- finally{
- try {
- if (out != null) {
- out.close();
- }
- } catch (IOException e2) {
- }
- }
Add Comment
Please, Sign In to add comment