Gossamer Forum
Home : General : Perl Programming :

file size

Quote Reply
file size
This code will get the file name(s), and print them to the screen:

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
Subject Author Views Date
Thread file size Pasha 5201 May 30, 1999, 3:38 PM
Post Re: file size
Bobsie 5042 May 30, 1999, 6:51 PM
Post Re: file size
Alex 5058 Jun 1, 1999, 1:20 PM
Post Re: file size
Hieu 5084 Jun 2, 1999, 10:42 AM
Post Re: file size
Alex 5077 Jun 2, 1999, 5:11 PM
Post Re: file size
tmoretti 5051 Jun 3, 1999, 4:03 PM
Post Re: file size
Alex 5049 Jun 6, 1999, 10:31 AM