Question: 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

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.

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

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

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

Project.txt as described in Eclipse Project 1 must be uploaded. (5% of grade)

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

Your program must be sufficiently commented. (5% of grade)

Your program must work to earn the above points. You can't submit a Hello World program that meets those requirements to get some points.

A large part of your grade will be how well you follow these directions.

Submit FileCopy.java and Project.txt. Nothing else is needed.

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!