Nov 4, 2003 #1 mgl70 Programmer Sep 10, 2003 105 US hi I am new to this java. I have a question. How to append or merge a string(Ii is a long string with delimeters) to a file. if anybody know this please help me. Thanks in advance.
hi I am new to this java. I have a question. How to append or merge a string(Ii is a long string with delimeters) to a file. if anybody know this please help me. Thanks in advance.
Nov 4, 2003 #2 byam Programmer Oct 24, 2003 396 CA Code: String yourString = "something"; // second boolean argument to true meant 'append' FileWriter writer = new FileWriter(test.txt, true); writer.write(yourString); Upvote 0 Downvote
Code: String yourString = "something"; // second boolean argument to true meant 'append' FileWriter writer = new FileWriter(test.txt, true); writer.write(yourString);
Nov 10, 2003 Thread starter #3 mgl70 Programmer Sep 10, 2003 105 US thank you very much. it worked. Upvote 0 Downvote