Hi
I have file called test.txt which looks like this:
aaa , bb.ccc
I need my program to count the number of words in the file, but not to count the spaces, comma's, fullstops etc. For example there is 3 words in the above file.
I know fscanf(fptr, "%s", name) will read a string up to a space or a newline. fptr is my FILE pointer and name is an array of char.
Can someone please help?