top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is better to use BufferedReader or Creating scanner object ?

+1 vote
278 views

I have a file and using scanner type Scanner to scan each line of this file but I have to create scanner instance for every key value that I want to match with the text of the file.
I want to reset scanner but not able to do so, I searched on the internet and found other way using BufferedReader which will help to get back to the first line of the file.Will it be better to use and is here anyone faced similar issue earlier?

posted Aug 23, 2017 by Shivam Kumar Pandey

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...