A brief question really, looking for, wondering about, and asking for any tips for what the best way is to handle this type of input:
word word
word word word word
word word word
word word
whereby the number of words on each line is totally random, and each separate word can be added to some data structure, like a linked list or tree for example.
Fgets each line and parse? Getchar()? Any clues?