Thread: I/O exercise
View Single Post
  #2 (permalink)  
Old 10-28-2007, 06:48 PM
Bojevnik Bojevnik is offline
Member
 
Join Date: Aug 2007
Posts: 13
Bojevnik is on a distinguished road
Where exactly do you have problems?
Becuase this exercise seems very "straight-away", you both files one for writing, one for reading then you copy all charackters in a file to another.

You open files by:
Code:
FileReader fr = new FileReader(new File(file1)); FileWriter fw = new FileWriter(new File(file2));
file1 and file2 are String paths to your files.
__________________
I HATE SMURFS!!!!!
Reply With Quote