Up to now I have used classes like Scanner and BufferReader/Writer, to read from a given txt file and write certain information to a txt file.
I want to implement a class that basically will do the same things as the Scanner class, meaning, will be able to parse a line of information from the file so that I can do certain stuff with this information.
My problem is I cannot find an Interface class in the java API that does this thing. And I am not sure if the Iterator interface can be used for this.
Should I write one in my own?
Thanks
Absolutely not, when you can use
Scanner or BufferedReaderwhich is provided inside the java library.