Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!ig!agate!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: Re: file size Message-ID: <880703104954.1330@CitHex.Caltech.Edu> Date: 3 Jul 88 17:52:14 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 8 > I want to be able to determine the size of a file from within > a program without having to do a spawn. Does anybody have any ideas? Depends on what language you're using. From C, you can use stat or fstat (for more information, type HELP CC RUN FSTAT or HELP CC RUN STAT). From most languages, you can do this through calls to RMS, but calling the C functions will probably be easier.