home *** CD-ROM | disk | FTP | other *** search
- Path: ulke.hiMolde.no!runee
- From: runee@hiMolde.no (Rune Espeseth)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: File sizes
- Date: 22 Feb 1996 16:33:23 GMT
- Organization: Molde College, Department of Computer Science
- Message-ID: <4gi5sj$eim@ulke.hiMolde.no>
- References: <4gd9pu$cpr@mn5.swip.net>
- NNTP-Posting-Host: ulke.himolde.no
- X-Newsreader: TIN [version 1.2 PL2]
-
- Daniel Hallgren (Ola.Lindgren@mailbox.swipnet.se) wrote:
- : What's the best way of finding out the size of a file? Do I have to use
- : Examine() or something? I write in assembler (DevPac 2).
-
- Yes.
- In c:
-
- struct FileInfoBlock *fibl; // needs to be longword-aligned
-
- filelock=Lock(filename);
- fibl=Examine(filelock);
- Unlock(filelock);
-
- check the fibl.filesize to get the size of the file.
-
- Or something along those lines, I don't have the RKM's here at scool... :)
-
- --
- Regards,
- Rune Espeseth
-
- -------------
- CyberStorm060/50Mhz, CyberVision64/4Mb
- Computer Information Science Student at Molde College, Norway
- Email: lakris@ask.himolde.no | Rune.Espeseth@himolde.no
-