From: Curious Person Date: 2003-01-29T02:02:06+09:00 Subject: Re: FileTest.size? vs du -b ahoward wrote in news:Pine.LNX.4.33.0301281641050.8727-100000@eli.fsl.noaa.gov: > > so accurate depends on you viewpoint : if you are concerned about the > total size of files on disk the du is more accurate, if you simply > want to know the size of a file to, for example, read it into a > malloc'd array then stat (FileTest.size) is the way to go. Well, what I eventually want to do is have a script that fills CDRs up to capacity for mkisofs to burn (but not over). Therefore, I need a way to measure size to ensure a good fit on the disc. I'm not sure which would be better; blocks or bytes, though. Would FileTest.size would be the most appropriate method to use? Thanks again, -C