Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!killer!chasm From: chasm@killer.DALLAS.TX.US (Charles Marslett) Newsgroups: comp.sys.ibm.pc Subject: Re: Determining the length of a file on MS-DOS Summary: Except for text files . . . Message-ID: <5479@killer.DALLAS.TX.US> Date: 11 Sep 88 19:55:41 GMT References: <3734@swrinde.swri.edu> <11470037@hpsmtc1.HP.COM> Organization: The Unix(R) Connection, Dallas, Texas Lines: 12 In article <11470037@hpsmtc1.HP.COM>, swh@hpsmtc1.HP.COM (Steve Harrold) writes: > Do a stat() call to get existence and size of a file without actually trying > to open() it. But if you want to get the number of bytes it looks like it takes up (read as a Unix compatible text file) you have to actually read it since it is bigger on disk than in memory. Such are the problems associated with compatibility... Charles Marslett chasm@killer.dallas.tx.us