Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. FileReader inputStream = null;
  2. String file = "";
  3. try {
  4. inputStream = new FileReader("PickleMan.txt");
  5. String l;
  6. while ((l = inputStream.readLine()) != null) {
  7. file += l + "\n";
  8. }
  9. } finally {
  10. if (inputStream != null) {
  11. inputStream.close();
  12. }
  13. }
  14. System.out.println(file);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement