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
Get step-by-step solutions from verified subject matter experts
