I have code that generates a string (which is held in a variable). I need to compare this string to see if it matches any one of many strings contained in a txt file. I am not sure how to do this. I have read a bit about steamreader, which may be a viable method.
Also, should I import all the data from the text file into a database within the program - would this increase the efficiency of the program in terms of access speed?
I have not yet created the textfile from which I want to import. The separator I would use would be return, as opposed to comma.
From what I have read, one must start by instantiating str (or equivalent:
StreamReader str = new StreamReader("c:\\sample.txt");
But I am not sure where to go from there...
Thanks in Advanced,
Dan.