@@ -0,0 +1,768 @@
+/*%0A * Sun's tutorial%0A * This program use BufferedReader and PrintWriter to print a line-oriented document%0A */%0A%0Aimport java.io.FileReader;%0Aimport java.io.FileWriter;%0Aimport java.io.BufferedReader;%0Aimport java.io.PrintWriter;%0Aimport java.io.IOException;%0A%0Apublic class CopyLines %0A%7B%0A%09public static void main(String%5B%5D args) throws IOException%0A%09%7B%0A%09%09BufferedReader in = null;%0A%09%09PrintWriter out = null;%0A%0A%09%09try %7B%0A%09%09%09in = new BufferedReader(new FileReader(%22CopyLines.java%22));%0A%09%09%09out = new PrintWriter(new FileWriter(%22CloneCopyLines%22));%0A%0A%09%09%09String l;%0A%0A%09%09%09//in.readLine() doesn't read %5Cn char?%0A%09%09%09while((l = in.readLine()) != null) %0A%09%09%09%7B%0A%09%09%09%09out.println(l);%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%0A%09%7D%0A%7D%0A

add CopyLines.java, this use BufferedReader and PrintWriter to copy a line-orented file