@@ -0,0 +1,666 @@
+/**%0A * Sun's tutorial%0A *This program copy characters from input file to output file%0A */%0Aimport java.io.FileReader;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0A%0Apublic class CopyCharacters%0A%7B%0A%09public static void main(String%5B%5D args) throws IOException%0A%09%7B%0A%09%09FileReader in = null;%0A%09%09FileWriter out = null;%0A%0A%09%09try %7B%0A%09%09%09in = new FileReader(%22CopyCharacters.java%22);%0A%09%09%09out = new FileWriter(%22CloneCopyCharacters%22);%0A%0A%09%09%09//This var will hold a character value in its last 16 bits%0A%09%09%09int c;%0A%0A%09%09%09while((c = in.read()) != -1)%0A%09%09%09%7B%0A%09%09%09%09out.write(c);%0A%09%09%09%7D%0A%09%09%7D finally %7B%0A%09%09%09if(in != null) in.close();%0A%09%09%09if(out != null) out.close();%0A%09%09%7D%0A%0A%09%09System.out.println(%22Done%22);%0A%09%7D%0A%7D%0A

add CopyCharacters.java, this use FileReader and FileWriter