Several ways of doing this:
The simplest way of doing it is with Scanner ()

If you are wanting to read larger files, I would recommend BufferedReader().

So, lets say we have a very basic 5...