Search for a word in a file
Posted: Wed Apr 06, 2011 6:55 am
Hi All
I wish to search for a word in a file using BASIC language.
I can open the file.
Code:
OpenSeq FILENAME To fOpened
ReadSeq Record From fOpened
But not sure how to search for a word inside the file. Sorry now only i started to work with BASIC Language.
For example:
SUN
MOON
EARTH
I know what i need to search for the word "MOON" in the file, but not sure how to do it.
It will be great if any one can guide me in this.
Thanks
DS User
I wish to search for a word in a file using BASIC language.
I can open the file.
Code:
OpenSeq FILENAME To fOpened
ReadSeq Record From fOpened
But not sure how to search for a word inside the file. Sorry now only i started to work with BASIC Language.
For example:
SUN
MOON
EARTH
I know what i need to search for the word "MOON" in the file, but not sure how to do it.
It will be great if any one can guide me in this.
Thanks
DS User