binary data files

mcdonald at uxe.cso.uiuc.edu mcdonald at uxe.cso.uiuc.edu
Thu May 4 23:39:00 AEST 1989



>MS-DOS has exact filesizes in bytes, and a standard OS call to retrieve
>a file's size in bytes.  The poster may have been thinking of CP/M,
>but CP/M is not MS-DOS.


Yes, but that size is the same as the number of characters returned
by fgetc only if the file is binary. Not generally so if it is text.

Doug McDonald



More information about the Comp.lang.c mailing list