Question: Complete the class code below and using only the main method, add code to make an EXACT COPY of the input file to an output
Complete the class code below and using only the main method, add code to make an EXACT COPY of the input file to an output file named copyOf_. For example, if we input the file named story.txt our class will make an exact copy of the file, but save it under the name copyOf_story.txt
public class CopyFile { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.println("Enter name of the file to copy FileName --> ");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
