Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to reach end of file  RSS feed

 
Raghu ram
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

can anybody help me?
Whenever i am adding new data to the file using InputStream previous data replaced with new data. So How to reach end of the file so that all the data must be seen. :roll:
 
vijay shanker
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi raghu,

may you add some code fragment in your post.
 
Campbell Ritchie
Marshal
Posts: 55672
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InputStream to write to a file? You surely mean a FileWriter? Look at the constructor for FileWriter in the API documentation. It is really easy to set your Writer to append lines.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!