search text for a list of words...how?

From: wil (willy_at_spamless.nl)
Date: 12/29/04


Date: Wed, 29 Dec 2004 18:50:27 +0100

I'm fairly new at programming and ran into something which i can't
solve.

On the one side list of items: (basically constants)
wheel
door
engine
window
heater
....and so on

On the other side a text file with an unknow amount of lines and each
line should be checked to see if it contains one of the words on that
list.

I could do it with a load of if else and strstr() but that seems
rather silly.
How would i go about this?

Cheers,
William



Relevant Pages

  • Re: Heater output / Engine speed
    ... The heater takes ages to give ... When you pull away and have some engine revs, ... > The first thing I'd check on this is the heater control valve. ... > bulb to the connector (a 5W capless bulb is ideal if you don't have a ...
    (uk.rec.cars.maintenance)
  • Re: 97 E420 rear power windows
    ... I haven't disassembled the door any farther than just removing the panel. ... The mechanism is cables and a motor. ... I'm visualizing a cable arrangement for raising the window and the same unit lowering it. ...
    (alt.auto.mercedes)
  • Re: 97 E420 rear power windows
    ... I haven't disassembled the door any farther than just removing the panel. ... The mechanism is cables and a motor. ... I'm visualizing a cable arrangement for raising the window and the same unit lowering it. ...
    (alt.auto.mercedes)
  • Re: OT-hate to admit it
    ... Did you see the one about bush in China when he couldn't even find a door OR a window? ... Your bitterness has totally blinded you. ... But look back at the last 8 years under "conservatism" - about 10,000 Americans are no longer alive, a great NYC landmark is gone, a budget surplus has been frittered away into the highest deficit in our history, businesses are failing daily yet Halliburton and Exxon/Mobil report record profits every quarter. ...
    (rec.outdoors.rv-travel)
  • Re: newbie Honda CR-V questions
    ... screwdrivers to get the door panel off. ... rolling the window down (do that before you disconnect the window motor wire ... I have had some success with "restoring" the pliability of degraded rubber ...
    (rec.autos.makers.honda)