I have a scanner which needs to read a recipe text file, specifically line 3.
I want to read all of the words in that line using a delimiter (which I already know how to use).
Though I don't know how to make the scanner stop before going to the next line.
Sample text file.
Something%in%this%first%line%
Something%in%this%secondline%
berrys%grapes%sugar%orange%
something%else%and%so%on
I'm basically trying to make a counter of how many ingredients I have.