Question: Suppose you want to back up a huge file (e.g., a 10-GB AVI file) to a CD-R. You can achieve it by splitting the file
Suppose you want to back up a huge file (e.g., a 10-GB AVI file) to a CD-R. You can achieve it by splitting the file into smaller pieces and backing up these pieces separately. Write a utility program that splits a large file into smaller ones using the following command:
java Exercise17_10 SourceFile numberOfPieces
The command creates the files SourceFile.1, SourceFile.2, . . . , SourceFile.n, where n is numberOfPieces and the output files are about the same size.
Step by Step Solution
3.35 Rating (173 Votes )
There are 3 Steps involved in it
Output File size is 8770152 bytes Program demonstrates splitting of a file Compile javac F... View full answer
Get step-by-step solutions from verified subject matter experts
