Bookmark Topic Watch Topic
  • New Topic

Writing in a text File is appending some INVALID Symbol on using any StringBuffer with \n

 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Report post to moderator

I am using this piece of code to write some Strings in a Text File , but on using the newLine() , it is adding some INVALID Charatcters
nation[#]patry[#^]like

It is not appending the text to the next line , and in the same line replacing the next line with some unknown charaters.
I am appending the values in stringBuffer with a next line("\n") after each string.

THIS SCENARIO IS COIMING IN FEW SYSTEMS. IN SOME SYSTEM IT IS WORKING FINE BUT IN SOME IT IS RASING


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!