Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FileInputStream fin;
- try {
- fin = new FileInputStream ("Files/Test1.txt");
- }
- catch (FileNotFoundException fnfe) {
- System.out.println ("File not Found!\n" + fnfe);
- }
- try {
- int k;
- while ((k = fin.read ()) != -1)
- System.out.print ((char) k);
- fin.close ();
- }
- catch (IOException ioe) {
- System.out.println ("I/O Exception\n" + ioe);
- }
Add Comment
Please, Sign In to add comment