Class FileInput

java.lang.Object
  |
  +--FileInput

public class FileInput
extends java.lang.Object


Constructor Summary
FileInput(java.lang.String fileName)
          the prompt argument can be used to ask the user to specify a filename catches IOException
 
Method Summary
 void close()
          closes open file uses instance variables file, fileName, and io catches IOException
 java.lang.String readLine()
          reads a line from file catches IOException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInput

public FileInput(java.lang.String fileName)
the prompt argument can be used to ask the user to specify a filename catches IOException
Parameters:
String - prompt
Method Detail

close

public void close()
closes open file uses instance variables file, fileName, and io catches IOException

readLine

public java.lang.String readLine()
reads a line from file catches IOException
Returns:
boolean