• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to append a string in a file ?  RSS feed

 
Nishu Malhotra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help
 
Knute Snortum
Sheriff
Posts: 4270
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Nishu.

Can you give us a little more detail on what exactly you are trying to do, e.g. do you want a new line at the end of a text file or to append to a line that's already in the file?

Also, can you post what you've done so far? And please UseCodeTags (← click) when you do.
 
Nishu Malhotra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have to append this hash at the end of the file "Trial.txt" within these <>
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a remarkable script, source of much information and even inspiration: the API docs!
There is this constructor:


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!