I have 100 text files from A001 to A100, each file only contain a short string. I 'd like to know how to write a program to count the frequency of 'C', and create folders with filename_countvalue (like A100_12, A050_3, represent 12 and 3 of 'C' in A100 and A050), then sort file A100 to folder A100_12, etc. Could you tell me how to write the program? Thanks in advance.