Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (sc == 1) {
- System.out.println("Choose a deck");
- File f = new File(getLoc() + "\\flashcardList.txt");
- f.createNewFile();
- BufferedReader br = new BufferedReader(new FileReader(f));
- int liczbalinijek = 0;
- while (br.readLine() != null) {
- liczbalinijek++;
- }
- String[] s = new String[liczbalinijek];
- if (liczbalinijek == 0) {
- System.out.println("There are no decks currentely created.");
- }
- String s11 = new String();
- for (int i = 0; i < liczbalinijek; i++) {
- s[i] = br.readLine();
- s11 += s[i] + "/t";
- }
- System.out.println(s11);
- br.close();
- Scanner dn = new Scanner(System.in);
- for (int i = 0; i < liczbalinijek; i++) {
- File d = new File(getLoc() + "\\" + s[i] + ".txt");
- Scanner fl = new Scanner(d);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement