Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void readHistory() {
- if(Files.HISTORY_FILE.exists()) {
- try(BufferedReader in = new BufferedReader(new FileReader(Files.HISTORY_FILE))) {
- String line;
- while( (line = in.readLine()) != null) {
- history.add(line);
- }
- } catch (IOException e) {
- e.printStackTrace();
- Dialogs.sendException("Something went wrong", "Something went wrong", e, true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement