Hi, all. I got a question and hope someone can help me find out solutions. I have thousands of data files with the same extension name. They are saved in the same directory. In this directory, many files with different extension names exist. How can a program automatically search this directory and count each of the files with a certain extension name?
For example, the data files have extension name "dat", from 0001.dat to 1000.dat. Each data file has several numbers. They are saved in the same directory. I need to give the name of the directory to the program, then this program goes to the directory and look for each of "dat" file, count the amount of the data and calculate the average number of the data for each file, and list the file whose average is lower than a constant.
I really appreciate for any suggestions of solution. Thanks in advance.