Re: How do you find out the size of a file

2003-10-21 Thread Rob Dixon
John W. Krahn wrote: > Chinku Simon wrote: > > > I have a requirement to find out the size of a file existing > > in an NTFS file system. > > my $file_size = -s $file_name; > > perldoc -f -s Thanks John. It's also worth pointing out that the '-s' operator is /indentical/ to calling 'stat' and tak

Re: How do you find out the size of a file

2003-10-20 Thread John W. Krahn
Chinku Simon wrote: > > Hi, Hello, > I have a requirement to find out the size of a file existing in an NTFS file system. my $file_size = -s $file_name; perldoc -f -s John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: How do you find out the size of a file

2003-10-20 Thread Brad Fike
I use the stat function. -Brad >-Original Message- >From: Chinku Simon [mailto:[EMAIL PROTECTED] >Sent: Monday, October 20, 2003 4:24 PM >To: [EMAIL PROTECTED] >Subject: How do you find out the size of a file > > >Hi, > >I have a requirement to find out the size of a file existing >in a

RE: How do you find out the size of a file

2003-10-20 Thread Hanson, Rob
Try stat(). It is a built-in function. >From perldoc -f stat: stat FILEHANDLE stat EXPR statReturns a 13-element list giving the status info for a file, either the file opened via FILEHANDLE, or named by EXPR. If EXPR is omitted, it stats "$_". Returns a null list i