Question: Java Programming: Write a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The

Java Programming:

Write a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The input file will contain more than one line when I test this. Do not use a path name when opening these files. This means the files should be located in the top level folder of the project.

DO NOT WRITE TO input.txt! There is no sin worse than wiping out the client's input file due to carelessness.

Your class name should be FileCopy.

Your program must work in Eclipse, even if you use a different IDE to develop it. It is best to use Eclipse. Suggest using BufferedWriter instead of a PrintWriter

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!