Trying to find an element in a string array
Posted on 1998-08-07
I need to be able to search for a string in a string array of 250 different constants. Basically I read a line from a file, then go thru a for loop 250 times checking against each element of the array to see if the line matches one of the strings in there. Then I read in the next line from the file and do the whole process again. This takes a really long time for it to run. Is there a quicker, more efficient way?