This code will get the file name(s), and print them to the screen:
@htmlFiles = grep(/\.html$/,readdir(DIR));
closedir(DIR);
foreach $file (@htmlFiles)
{
print "$file<BR>\n";
}
Does anybody knows how to get the size of the file?
Thank you,
Pasha
------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Code:
opendir(DIR, "."); @htmlFiles = grep(/\.html$/,readdir(DIR));
closedir(DIR);
foreach $file (@htmlFiles)
{
print "$file<BR>\n";
}
Does anybody knows how to get the size of the file?
Thank you,
Pasha
------------------
webmaster@find.virtualave.net
http://find.virtualave.net