File
Objects with Stream Constructors
Previous examples of I/O streams used constructors that took String
arguments.
Some constructors for I/O streams
use a File
argument.
Here is a list of them:
FileInputStream(File file) throws IOException FileOutputStream(File file) throws IOException FileReader(File file) throws FileNotFoundException FileWriter(File file) throws FileNotFoundException
Here is more of the improved file copy program, now with blanks to fill in the constructors:
Cut and paste from the following phrases:
inFile outFile