I have a requirement that I need to read all the text files from a particular directory (C:\myProject).The files contains key value pairs separated by space. The commented lines begin with the value '#' and it should be ignored. The key can be ends with '-" and '-' should not be included in the key. I need to print all the keys without any duplicates. Also the performance is very important.
C B A Jerry Tom FA GA
I am looking for a good solution that meets my requirement. Thanks in advance for your suggestions and help.