Thread: IOStreams
View Single Post
  #2 (permalink)  
Old 01-22-2008, 07:33 PM
XiaoXiao XiaoXiao is offline
Member
 
Join Date: Jan 2008
Posts: 6
XiaoXiao is on a distinguished road
Just use different constructor
FileWriter has an other constructor where you can specify whether to append or overwrite.
use

out=new FileWriter("E:/Documents and Settings/Naresh/Desktop/java/xyz.txt",true);
the boolean true will set that to append mode.
Reply With Quote