[comp.sys.ibm.pc] Determining the length of a file on MS-DOS

swh@hpsmtc1.HP.COM (Steve Harrold) (09/09/88)

Do a stat() call to get existence and size of a file without actually trying 
to open() it.

chasm@killer.DALLAS.TX.US (Charles Marslett) (09/12/88)

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