Advertisement
Emrage

Untitled

Mar 2nd, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. public static void readHistory() {
  2.         if(Files.HISTORY_FILE.exists()) {
  3.             try(BufferedReader in = new BufferedReader(new FileReader(Files.HISTORY_FILE))) {
  4.                 String line;
  5.                 while( (line = in.readLine()) != null) {
  6.                     history.add(line);
  7.                 }
  8.             } catch (IOException e) {
  9.                 e.printStackTrace();
  10.                 Dialogs.sendException("Something went wrong", "Something went wrong", e, true);
  11.             }
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement