Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you would like to exit, enter 0.
- If you would like to create a file, enter 1.
- If you would like to write to a file, enter 2.
- If you would like to read a file, enter 3
- 1
- Enter the file name.
- a
- The file has been created.
- If you would like to exit, enter 0.
- If you would like to create a file, enter 1.
- If you would like to write to a file, enter 2.
- If you would like to read a file, enter 3
- 4
- You must pick a number in-between 0 and 3!
- 3
- What file would you like to read from? Enter the integer next to it.
- [0] a.txt
- 0
- Exception in thread "main" java.io.FileNotFoundException: a.txt (The system cannot find the file specified)
- at java.io.FileInputStream.open0(Native Method)
- at java.io.FileInputStream.open(Unknown Source)
- at java.io.FileInputStream.<init>(Unknown Source)
- at java.util.Scanner.<init>(Unknown Source)
- at main.Main.run(Main.java:96)
- at main.Main.main(Main.java:16)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement