• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading line by line ..  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to find a way to read line by line from a texteditor in unix platform...and also to write in files
how do i do that ??
thanks
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To write in files I usually use a BufferedWriter together with FileOutputStream and InputStreamWriter. You could also just use a PrintWriter.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!