Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!ath@my.cvab.SE From: ath@my.cvab.SE (Anders Thulin) Newsgroups: comp.lang.c Subject: A question about ANSI C file handling Message-ID: <12385@brl-adm.ARPA> Date: 14 Mar 88 20:41:43 GMT Sender: news@brl-adm.ARPA Lines: 14 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@cvab.se UUCP: {uunet,mcvax}!enea!cvab!ath PHONE: +46 13 20 31 00 FAX: +46 13 21 29 75 TELEX: 50020 contex s