Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Demonstrate FileReader.
- import java.io.*;
- class FileReaderDemo {
- public static void main(String args[]) throws Exception {
- FileReader fr = new FileReader("out.txt");
- BufferedReader br = new BufferedReader(fr);
- String s;
- while((s = br.readLine()) != null) {
- System.out.println(s);
- }
- fr.close();
- } // I AM SO GOOD AT THIS SHIT :D
- }
Add Comment
Please, Sign In to add comment