• Post Reply Bookmark Topic Watch Topic
  • New Topic

resetting a BufferedReader

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using the readLine() method of BufferedReader to trace through the lines of a file, how can I 'reset' the file to go back to the beginning? The reset() method requires a 'mark' which is set up with a mark(int readAheadLimit) method. All I want is to return to the start of my file without having to create a new object.
Thanks.
Paul
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!