A question about ANSI C file handling
Anders Thulin
ath at my.cvab.SE
Tue Mar 15 06:41:43 AEST 1988
I understand that the ANSI draft standard of C requires binary files
to be opened in binary mode, using for instance:
f = fopen(file, "rb");
Does anybody know if there is a way (in ANSI C) to determine whether
a file is binary or not? Does fopen fail if a binary file isn't
opened as binary?
Thanks,
Anders Thulin, ContextVision AB, Teknikringen 1, S-583 30 Linkoping, SWEDEN
INET: [@uunet.uu.net:]ath at cvab.se UUCP: {uunet,mcvax}!enea!cvab!ath
PHONE: +46 13 20 31 00 FAX: +46 13 21 29 75 TELEX: 50020 contex s
More information about the Comp.lang.c
mailing list