|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FileInput
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 |
public FileInput(java.lang.String fileName)
String
- promptMethod Detail |
public void close()
public java.lang.String readLine()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |