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?