I want program which can read 10 files in a folder . If there is 11 files the program should delete the extra file that is added. and if there are less files ( below 10) the program should not execute. !

Can anybody get me this program?