word search in a text file  This is a discussion on word search
in a text file within the C Programming forums, part of the
General Programming Boards category; hey, I am writing a c
program that searches a text file for a keyword and count the
number of ...    1. #1     Registered User     Join Date     Nov
2008      Thumbs up word search in a text file      hey, I am
writing a c program that searches a text file for a keyword and
count the number of times it occurs in the text file.      this
is what I have so far      printf("Enter A Single keyword:");
Last edited by Salem; 11-20-2008 at 12:12 AM. Reason:
[code][/code] tags AROUND THE CODE PLEASE, don't just slap them
in to keep the rules happy    2. #2     Registered User C_ntua's
Avatar     Join Date     Jun 2008     Even though fscanf isn't
the safest function, this should work IF you care about keywords
that are seperated with whitespaces. It won't find cat in the
string "cats" for example, the latest being a bit more
complicated but still easily a