• Post Reply Bookmark Topic Watch Topic
  • New Topic

Write to file  RSS feed

 
Roger Fed
Ranch Hand
Posts: 82
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I want to append data to file , the problem that i face is that after putting the pointer at the
end of the file, I can't make the pointer at the beginning of the next line ???
how can i do this???
 
Greg Charles
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file probably doesn't end with a line separator. In that case, you'd have to write one before writing what you want to be on the next line.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!