C G M T W

C

close() - Method in class TextFileRead
Close the stream.
close() - Method in class TextFileWrite
Close the stream.

G

getNextLine() - Method in class TextFileRead
Read one line from the text file and return it as a String to the caller.
getNextNonBlankLine() - Method in class TextFileRead
Read one line from the text file and return it as a String to the caller.

M

main(String[]) - Static method in class TextFileRead
Test harness for this class.
main(String[]) - Static method in class TextFileWrite
Test harness for this class.

T

TextFileRead - class TextFileRead.
This example program reads lines of text from a file and writes them on the console window.
TextFileRead(String) - Constructor for class TextFileRead
Create a new TextFileRead object with which to read a file.
TextFileWrite - class TextFileWrite.
This example program reads lines of text from the console and writes them out to a file.
TextFileWrite(String) - Constructor for class TextFileWrite
Create a new TextFileWrite object with which to read and write.

W

writeOneLine(String) - Method in class TextFileWrite
Write one line on the output file.

C G M T W