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 lab12; p 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

This note was uploaded on 09/10/2009 for the course CS 102 taught by Professor Kanipiakins during the Spring '09 term at University of Maryland Baltimore.

Ask a homework question - tutors are online