java You may NOT write this program as a GUI (Graphical User Interface). 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 and so should your output file. 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. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself. do not write to input.txt* Your class name must be FileCopy. It should be in a package named mypackage
java
You may NOT write this
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 and so should your output file. 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. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself.
do not write to input.txt*
- Your class name must be FileCopy.
- It should be in a package named mypackage
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images