import java.io.*;
class SweetFile{
public static void main(
String args[]){
try{
File inputfile=new File("light.txt");
FileInputStream fromfile=new FileInputStream(inputfile);
File outputfile=new File("dark.txt");
FileOutputStream tofile=new FileOutputStream(outputfile);
}catch(IOException e){}
try{
int i;
while((i=fromfile.read()) != -1)
tofile.write(i);
}catch(IOException e){}
System.out.println("It is done");
fromfile.close();
tofile.close();
}
}
This code doesn't compile.What could be possibly wrong with the code?Please suggest.