David. It appears that I forgot to assign that array value.
Also, won't
break for files with spaces in them?
It is there to take out the rest of the filename from the dir listing.
It gets the whole filename to the space and then just the filename. You do bring up a good point as I have yet to test it with a filename that has spaces in it.