In my VB net 2008 app I get a filename from the end user. That file is a text file. The text file contains a lot of information, but it also might contain one or more names of files. these files are all *.bin files.
Now I want to search through the file and build a list of filenames it contains.
I'm thinking that I somehow need to use regular expressions and do something recursive.
The file could look kind of like this:
blah blah blah file1.bin blah blah
blah blah anotherfile.bin blah
So I want my list to look like:
What is the best and most elegant way for me to do it?
(I can use a C# example. It does not HAVE to be VB)
Thanks in advance