Here is my prompt for the assignment:
Your program needs to read the information from a text file instead of using a scanner to read from command line.
Your program also ne
import java.nio.file.path;
import java.nio.file.paths;
class FileCopy {
public static void main(String args[])
{
Path sour =Paths.get("Source path");
Path dest =Paths.get("destination path"); // The new file name should be given
or else FileAlreadyExistsException occurs.
Files.copy(sour, dest);
}
}