FileRead - }catch( fnfe{System.out.println"File not...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
package lab5; p import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class FileRead { BufferedReader inFile; public FileRead(String inputFile) {try{ inFile = new BufferedReader(new FileReader(inputFile));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: }catch(FileNotFoundException fnfe){System.out.println("File not found");} } public String readLine(){ String line = ""; try{ line = inFile.readLine(); }catch(IOException ioe) {System.out.println("File Not Found"); } return line; } }...
View Full Document

  • Spring '09
  • Kanipiakins
  • Subroutine, Carriage return, import java.io.BufferedReader, public String readLine, public class FileRead

{[ snackBarMessage ]}

Ask a homework question - tutors are online