Hi i made the aove code to check if a file exist:
-----------------------------------------------------

FILE *fp;

fp=fopen("c:\\.txt","r");

if(fp==NULL)
ShowMessage("The file doesnt exist");
else
ShowMessage("File exists");
----------------------------------------------------
Can i make a simple program to check how many txt files exist on c:\\
Thank you