ssmith.io
Class TextFile

java.lang.Object
  extended by ssmith.io.TextFile

public class TextFile
extends java.lang.Object

Version:
Author:
steve smith

Field Summary
static java.lang.String APPEND
           
static java.lang.String READ
           
static java.lang.String WRITE
           
 
Constructor Summary
TextFile()
          Creates new TextFile
 
Method Summary
 void close()
           
 boolean delete()
           
 java.lang.String getFilename()
           
 boolean isEOF()
           
 void openFile(java.lang.String Filename, java.lang.String Type)
          Creates new TextFile
 java.lang.String readLine()
          This returns a string, or nothing if EOF reached.
 void write(java.lang.String text)
           
 void writeLine(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ

public static java.lang.String READ

WRITE

public static java.lang.String WRITE

APPEND

public static java.lang.String APPEND
Constructor Detail

TextFile

public TextFile()
Creates new TextFile

Method Detail

openFile

public void openFile(java.lang.String Filename,
                     java.lang.String Type)
              throws java.io.FileNotFoundException,
                     java.io.IOException
Creates new TextFile

Throws:
java.io.FileNotFoundException
java.io.IOException

readLine

public java.lang.String readLine()
                          throws java.io.IOException
This returns a string, or nothing if EOF reached.

Throws:
java.io.IOException

isEOF

public boolean isEOF()

writeLine

public void writeLine(java.lang.String text)
               throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String text)
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getFilename

public java.lang.String getFilename()

delete

public boolean delete()