filesize issue

Ed Hilovsky lgf at lgfcomputers.net
Tue Oct 4 16:00:15 PDT 2011


Two files:

 

-rwxrwxr-x  1 filepro users    0 Oct  3 12:13 10002038.csv

-rwxrwxr-x  1 filepro users 3522 Oct  3 12:14 10002039.csv

 

11  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

        If:


       Then: declare csvfile(40,*)


 12  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

        If:


       Then: csvfile="/ets/"{ru{".csv"{""


 13  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

        If:


       Then: aa=filesize(csvfile)


 14  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

        If:        aa eq "0"


       Then: errorbox "\r File Size is zero";end

 

File 10002038.csv returns a  -9

File 10002039.csv returns a  -9

 

 

How could I tell when a file is zero length ? ( ie 10002038.csv)

 

Thanks,

 

 

 -- 

Ed Hilovsky 
LGF Computers 

Main Office   : (724) 463-7633 
Toll Free         : (800) 653-8479 
Fax Number : (866) 448-5415 
Cellular           : (412) 289-1773 

email   <mailto:lgf at lgfcomputers.net> lgf at lgfcomputers.net 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20111004/7f8c3362/attachment.html 


More information about the Filepro-list mailing list