There are many ways you can do this.If you wanted to read the content line by line level you can BufferReader/BufferWriter and the below script will helps you.
public class FileHandling
public static void main(String args)
File o_File1=new File("C:\\Input1.txt");
File o_File2=new File("C:\\Input2.txt");
BufferedReader o_br1=new BufferedReader(new FileReader(o_File1));
o_bw1 = new BufferedWriter(new FileWriter(o_File2) );
} catch (Exception e)