How do I write something in the end of a file? Do I have to read the entire file first putting it into a buffer and then write it all again in a file with the line I want to write in the end? Or I can directly write in the end of the file?

JIA Java Italian Association

Check out java.lang.FileWriter and java.lang.FileOutputStream. They both have a constructor that takes a boolean parameter for appending or not the data.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact