Home > Archive > Visual Basic > November 2005 > Read specific word in a text file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Read specific word in a text file
|
|
| Gol Yass 2005-11-29, 6:55 pm |
| Dear All
I need to read some words from a file. These words are in many places in a
file but marked between certain characters like <word1,word2 > .
Could you please tell me how to look for these specific words in a file?
Most appreciated,
Yass
| |
| Duane Bozarth 2005-11-29, 6:55 pm |
| Gol Yass wrote:
>
> Dear All
>
> I need to read some words from a file. These words are in many places in a
> file but marked between certain characters like <word1,word2 > .
>
> Could you please tell me how to look for these specific words in a file?
>
Simplest is to read the whole file into memory and use InStr$()
repetitively.
If too large for that, another level of looping will be required, but is
still straight forward.
|
|
|
|
|