I created a regex pattern to find some string in a text file. I need to know the string position when regex pattern is match.
But I must use ReadToEnd()
to read the text file, and then use MatchCollection
to collect all result, so does anyone know if have any method can get string position in the text file.