I have a text file that I need to search looking for a four character string. I need to count the number of occurrences and if the four character string is found get the location of each occurrence. I have to problem opening the file and reading the content. I'm just having a issue with figuring out the search.
to be more detailed I need to find the string "ISA*" that is stored in the variable "xInput" and count the occurrences and get the location of each so that it can be used later.
I've seen several examples online but I cant seem to get any to work. Any help would be appreciated.