search text for a list of words...how?
From: wil (willy_at_spamless.nl)
Date: 12/29/04
- Next message: Mike Wahler: "Re: search text for a list of words...how?"
- Previous message: Rich: "reinterpret_cast"
- Next in thread: Mike Wahler: "Re: search text for a list of words...how?"
- Reply: Mike Wahler: "Re: search text for a list of words...how?"
- Reply: infobahn: "Re: search text for a list of words...how?"
- Reply: Andrey Tarasevich: "Re: search text for a list of words...how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Mike Wahler: "Re: search text for a list of words...how?"
- Previous message: Rich: "reinterpret_cast"
- Next in thread: Mike Wahler: "Re: search text for a list of words...how?"
- Reply: Mike Wahler: "Re: search text for a list of words...how?"
- Reply: infobahn: "Re: search text for a list of words...how?"
- Reply: Andrey Tarasevich: "Re: search text for a list of words...how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|