I apologize if the question title is a little confusing, but let's say a text file contains the following data:
Sample 'Line1
1 'Line2
2 'ProjectCount
FileA.ext 'Projects( 1)
0 'SortTermCount
FileB.ext 'Projects( 2)
0 'SortTermCount
...
I know the extension name that exists as a string within the file (i.e. .doc), what I would like to do is get the full name and the extension of the file, the code would return "FileA.ext" and "FileB.ext" (as a string, or array (preferably), or whatever).
I tried to modify code from this SO question: https://stackoverflow.com/a/3152180 to work with text files, but I guess that is only for directories.
EDIT: The value before 'ProjectCount' tell me how many extension files I can expect, so perhaps I don't need to search the entire file?