Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void loadAccounts() throws IOException {
- BufferedReader br = new BufferedReader(new FileReader(TEXT_FILE));
- String line;
- while ((line = br.readLine()) != null) {
- System.out.println(line.substring(0, line.indexOf(" - ")) + "; "
- + line.substring(line.indexOf(" - ") + 3, line.length()));
- accounts.put(line.substring(0, line.indexOf(" - ")),
- line.substring(line.indexOf(" - ") + 3, line.length()));
- }
- }
Add Comment
Please, Sign In to add comment