Our Java programs are files - files of characters. Any program or text we create with an editor such as ed or vi, is a file of characters.
So far we have been using the standard default files input
and output.
eg static PrintStream output = System.out;
static ASCIIInputStream input = new
ASCIIInputStream(System.in);
To access these default files we used the following pre-
defined Java class methods:
readInt() readDouble()
Format.print() println()
Java provides other pre-defined methods1 for use with text files: (See footnote)