Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Sebastion Anderson   on Nov 12 In Java Category.

  
Question Answered By: Bellona Lopez   on Nov 12

Only thing which u needa do is just open the your "data.html" file  in append
mode in File2.java. Then it'll just append the String to the file.

just replace

fos = new FileOutputStream(FileName ); in File2.java with

fos = new FileOutputStream(FileName,true );
which sets append value to true which is false by default.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on File I/O question Or get search suggestion and latest updates.


Tagged: