Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing path in a file

 
Martin Kogut
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I 've made a tree with showing all my folders, by clicking two times, my script is writing the selected path into a seperated txt-file! but if click another direcotory or file, it will be overwritten in the txt-file, how can i do that so, taht the tree will sort my clicked paths & directories`?
thanks
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open the file in 'append' mode. I guess Javadoc:File is the right place for the details and I/O would have been the right forum, since the file isn't affected by your GUI.
 
Martin Kogut
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ich danke Dir, hat mich viel weitergebracht!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic