Simple copy one file to another file

//Simple copy one file to another file
import java.io.*;
class Copy
{
public static void main(String args[])throws IOException
{
int c;
try
{
FileReader fr=new FileReader("Copy.java");
FileWriter fw=new FileWriter("SimpleCopy.txt");
while((c=fr.read())!=-1)
{
fw.write(c);
}
System.out.println("Copy Successfully");
fr.close();
fw.close();
}catch(Exception e)
{
System.out.println(e);
}
}
}
/*Output:-
*/