This is one line in my file
However the next line has far more words in it
This has the least
I'm trying to read each whole line, then read each word from the line, as follows:
Expand|Select|Wrap|Line Numbers
- while (fgets(line, MAX_LINE_LEN, inputfile) != NULL)
- {
- while (sscanf(line, "%s", word) == 1)
- {
- /* Do something with the word */
- }
- }
Thanks for your help, it is much appreciated :)