Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing contents of files

Status
Not open for further replies.

bobo12

Programmer
Dec 26, 2004
74
0
0
US
hi ppl,
i am used to using StringTokenizer in Java to help me parse for certain phrases and look for certain substrings within contents of file. I was wondering if there are built in classes in c that will allow me to do the same thing.

suppose I want to count the # of times a particular client downloaded a certain file in web logs. this is just an expl to give u a flavor of what i would like to do.
 
You could also go for the full blown lex-yacc parsing thing. The freeware versions are flex (lex) and bison (yacc). They are basically BNF for LALR syntax converted into state machines.
 
1. The C Language has no any classes.
2. As usually programmers use strstr(), strchr(), strpbrk(), strcspn() etc RTL functions to search - and strtok to tokenize...
3. As usually no need in any other tools to solve ordinary (99.9%)problems...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top