i have a problem, well it's more a question. I shall write short prog. that will read a text file consisted of words separated with emty space. I know about tokens and I was intended to use them, but a friend of mine suggested me another option, but without any example.
He realized, that there are only 2 words that i need to know. Both are always in the first half of line. So he suggested to read the line not by words but chars and after reading what i need to jump on next line.
So he wanted to shorten somehow reading the file.

the line looks like that

servername date time numberofhits exactdirectoryopened...

Is his idea possible or should I rather use tokenizer?