Java Reference
In-Depth Information
R EVIEWING THE E XERCISES
In this chapter, you performed some simple operations using the File classes, in-
cluding instantiating the class and checking for the existence of the file in the file
system itself.
You also did some simple input and output using the File -based input and
output stream classes.
You should remember that I/O in Java is stream-based and not always related to
the file system. In fact, once the stream is instantiated, operations on the stream are
completely ignorant of the underlying storage and transport mechanisms. The trans-
port could be in memory, across a network, or through the operating system to disk.
The Reader and Writer classes I discussed are more typically used for text out-
put and input. You might want to modify the program to use the readers and writ-
ers I've discussed.
Search WWH ::




Custom Search