[ic] Getting File size

Kyle Cook interchange-users@interchange.redhat.com
Thu Mar 28 15:52:01 2002


At 12:20 PM 3/28/02, you wrote:
>Hi List,
>
>is anyone so kind to give me the right direction, how can I determine
>the size of a file?
>
>Thanks!
>
>Joachim

Joachim,

The perl answer would be:

my $size = -s '/path/to/myfile.txt';

Kyle