You must submit a Project1.txt file that states that your program meets all project requirements or states which requirements were not (or only partially) met. You may NOT write this program as a GUI...

1 answer below »

You must submit a Project1.txt file that states that your program meets all project requirements or states which requirements were not (or only partially) met.


You may NOT write this program as a GUI (Graphical User Interface). That would earn no points.


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! That will cost a lot of points. Double check this. There is no sin worse than wiping out the client's input file due to carelessness.



  1. Your class name must be FileCopy. Capitalization counts. It must be in a file named FileCopy.java. Not Project1.java or FileCopyUpload.java. (5% of grade)

  2. It should be in a package named mypackage, as explained in this week's videos. (5% of grade)

  3. Put your name at the top of the source file. (5% of grade)

  4. Project1.txt mentioned above must be uploaded. (5% of grade)

  5. You must use proper indentation like in the book and use meaningful variable names. (5% of grade)

  6. Your program must work in Eclipse, even if you use a different IDE to develop it. It is best to use Eclipse. I am starting you with a simple Eclipse project to get you ready for more complex projects.

  7. Upload FileCopy.java and Project1.txt.

Answered 1 days AfterJul 05, 2021

Answer To: You must submit a Project1.txt file that states that your program meets all project requirements or...

Neha answered on Jul 06 2021
126 Votes
FileCopy.java
FileCopy.java
import java.io.IOException;
import java.io.FileReader;
import java.i
o.FileWriter;
class FileCopy {
    public static void main(String[] args)
    {
        try
        {
            FileReader fileread = new FileReader("Project1.txt");
            FileWriter filewrite = new FileWrit...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here