Question
You may NOT write this program as a GUI (Graphical User Interface). That would earn no points. a program that reads a file named input.txt
You may NOT write this program as a GUI (Graphical User Interface). That would earn no points.
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. Not Project.java or FileCopyUpload.java. (5% of grade)
- It should be in a package named mypackage, as explained in this week's videos. (5% of grade)
- Put your name at the top of the source file. (5% of grade)
- Project.txt mentioned above must be uploaded and done as specified. (5% of grade)
- You must use proper indentation like in the book and use meaningful variable names. (5% of grade)
- 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.
- Upload FileCopy.java and Project.txt.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
FileCopyjava package mypackage import javaioBufferedReader import javaioBufferedWriter import javaio...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started