Question: I need help on number 3 3. Create a program FileDump that will print out the contents of any file. FileDump should read in the

 I need help on number 3 3. Create a program FileDump

I need help on number 3

3. Create a program FileDump that will print out the contents of any file. FileDump should read in the name of a file from the command line. If the file doesn't exist then it should throw a FileNotFoundException. If the file does exist then the program should print out the contents of the file three ways 1. As Binary (i.e. the raw binary digits of the file.) 2. As Hexadecimal, similar to binary, but much more compact. 3. As Strings UTF-8 encoding. This may show some very strange characters depending on the type of file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!