FileRead - public String readLine String line =""...

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

View Full Document Right Arrow Icon
package lab4; import*; public class FileRead { BufferedReader inFile; public FileRead(String inputFile) {try{ inFile = new BufferedReader(new FileReader(inputFile)); }catch(FileNotFoundException fnfe){System.out.println("File not found");}
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online