try
{
BufferedReader in = new BufferedReader(new FileReader("c:\\1.txt"));
PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter("c:\\2.txt")),true);
String tmp = "";
while((tmp=in.readLine()) != null)
{
writer.println(tmp);
}
writer.close();
in.close();
}
catch(Exception e)
{
e.printStackTrace();
}