|
Could a byte read from a file by A good answer might be:
Yes. Both methods use the same part of an |
File Copy Program
The next example program is a file copy program.
The text file copy program
(of two chapters ago)
did character-based IO
with C:\Programs > java copyBytes sourceFile to destinationFile As with the previous program, the "to" argument is to ensure that the user has the files in the correct order. The program operates by reading the original file one byte at a time and writeing to the copy file one byte at a time. |
QUESTION 14:What two stream classes are likely to be useful? Click Here after you have answered the question |