Could you help me with this exercise?
Write the static method copyFile(String fromFile,String toFile)
that copys the content of fromFIle to toFile.The fromFIle and toFile are
data of characters.The description of File,FileReader,FileWriter.Reader,
Writer is given.
Where exactly do you have problems?
Becuase this exercise seems very "straight-away", you both files one for writing, one for reading then you copy all charackters in a file to another.
You open files by:
file1 and file2 are String paths to your files.
FileReader fr = new FileReader(new File(file1));
FileWriter fw = new FileWriter(new File(file2));