Hey guys, with the assignment that I'm currently working on I have words that I need to place in a char *buffer variable. I'm using the fgets() function to achieve this goal.
Here is a sample data of the file:
silver
simple
sister
size
skin
skirt
Note that the new line between the words skin and skirt are intentional. The problem that I'm encountering is how to keep reading that next word since its not really the end of file yet. Thanks for the help guys!
Here is a sample data of the file:
silver
simple
sister
size
skin
skirt
Note that the new line between the words skin and skirt are intentional. The problem that I'm encountering is how to keep reading that next word since its not really the end of file yet. Thanks for the help guys!