Monitor.Omr
Class readFile

java.lang.Object
  |
  +--Monitor.Omr.readFile

public class readFile
extends java.lang.Object

Reads the file specified by the user. This class encapsulates the methods necessary for reading a file.


Constructor Summary
readFile(java.lang.String file)
          Receives the file name and open the file.
 
Method Summary
 void close()
          Close the file.
 void open()
          Open the file.
 java.lang.String read1line()
          Read one line of the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

readFile

public readFile(java.lang.String file)
Receives the file name and open the file.
Parameters:
file - the name of the file to be read
Method Detail

open

public void open()
Open the file.

close

public void close()
Close the file.

read1line

public java.lang.String read1line()
Read one line of the file.
Returns:
the line read