How do I get the line number of every occurrence of a string in an ASCII text file with minimal reads and counting each line?
I have an ASCII text file with close to 8 million records in it. I need to scan the file and provide the line number for every occurrence of a string.
Thanks in advance for any help.
I have an ASCII text file with close to 8 million records in it. I need to scan the file and provide the line number for every occurrence of a string.
Thanks in advance for any help.