I have a text file that I need to read. The file consists of 3 fields that I need to store. The first is a label of words separated by spaces, the second and third are just one word of text each. I want to use sscanf to process each line.
Please see the attached text file for an example of the format:
My question is this: How can I handle the first field using sscanf? I think I know how to handle th etwo other fields since they are just one word each..but the first field can be one or many words (no more than 20 characters in total length).
Thanks in advance!