Advertisement
Nickpips

Untitled

Nov 28th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. If you would like to exit, enter 0.
  2. If you would like to create a file, enter 1.
  3. If you would like to write to a file, enter 2.
  4. If you would like to read a file, enter 3
  5. 1
  6. Enter the file name.
  7. a
  8. The file has been created.
  9. If you would like to exit, enter 0.
  10. If you would like to create a file, enter 1.
  11. If you would like to write to a file, enter 2.
  12. If you would like to read a file, enter 3
  13. 4
  14. You must pick a number in-between 0 and 3!
  15. 3
  16. What file would you like to read from? Enter the integer next to it.
  17. [0] a.txt
  18. 0
  19. Exception in thread "main" java.io.FileNotFoundException: a.txt (The system cannot find the file specified)
  20. at java.io.FileInputStream.open0(Native Method)
  21. at java.io.FileInputStream.open(Unknown Source)
  22. at java.io.FileInputStream.<init>(Unknown Source)
  23. at java.util.Scanner.<init>(Unknown Source)
  24. at main.Main.run(Main.java:96)
  25. at main.Main.main(Main.java:16)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement