Grouping related files in a folder
Posted on 2013-01-13
I have txt files in my c:\submit folder but Id like to group them based on the file name. This file name is an ID but Id like to use their description . I can get the description of the id from a table on the database.
In the C:\submit folder, I have the text files as
ID 5679 in the table has description of Science
ID 3452 in the table has description of Technology
The result Im looking for should be displayed as follows:
A folder for each group and its associated text files inside the folder
What code is use to loop thru the files, grouping it to a folder?