Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FileReader inputStream = null;
- String file = "";
- try {
- inputStream = new FileReader("PickleMan.txt");
- String l;
- while ((l = inputStream.readLine()) != null) {
- file += l + "\n";
- }
- } finally {
- if (inputStream != null) {
- inputStream.close();
- }
- }
- System.out.println(file);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement