Hi, I'm writing a program that basically reads in a text and scans it for various occurances of some predifined strings and then if there is a match, I write into another text file. So far, I used a string array to store my predefined strings to be used for comparison, however, my comparison algorithm doesnt seem to work. Can someone check it out to see what might be wrong? Any input is greatly appreciated on that part or any part of the whole code too. Thanks.
Code is below
Hey, thanks PanGalactic. That fixed it. I'm also trying to check if the first character in every string is a Capital letter or an integer. I used the .find_first_of() operator. Is the syntax correct or is there an easier way to do that?