Hello !
This is how I count how many file inside the folder $dir
opendir(DIR, "$dir") ;
@array = grep(/\.txt/,readdir(DIR));
closedir (DIR);
$total = @array ;
My question is : how to count the total .txt files which were stored inside subfolder/subfolder/.... (entire folder)
Hope anyone can help me here !
Thank a lot !
N.A
This is how I count how many file inside the folder $dir
opendir(DIR, "$dir") ;
@array = grep(/\.txt/,readdir(DIR));
closedir (DIR);
$total = @array ;
My question is : how to count the total .txt files which were stored inside subfolder/subfolder/.... (entire folder)
Hope anyone can help me here !
Thank a lot !
N.A