I guess my problem then is getting fscanf to detect the end of the file.
Type: Posts; User: mjpars
I guess my problem then is getting fscanf to detect the end of the file.
If I have a data file that is structured like this:
word1 word2
word3 word4
word5 word6
I am using fscanf to read the words into an array of strings. How can I count the number of lines in...
Thanks everybody. I got Hammer's array of strings version to work.
Can somebody tell me how to create an array of strings and load the strings into the array. I know how to use arrays with integers or even floats but not with strings.