Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!Kumar_Swaminathan.SVSantaClara@Xerox.COM From: Kumar_Swaminathan.SVSantaClara@Xerox.COM Newsgroups: comp.lang.c Subject: Re: MSC 5.0 Bug??? Message-ID: <11775@brl-adm.ARPA> Date: 11 Feb 88 23:31:09 GMT Sender: news@brl-adm.ARPA Lines: 12 In resp. to <983@maccs.UUCP> regarding a (possible) bug in fwrite() of msc: Whether or not the CR/LF combo is interpreted as '/n' depends on how one opens the file with fopen. If the "type" arg. in fopen contains a 't' (for text files) then such interpretation occurs. To avoid that use 'b' (for binary). e.g: fopen("File.name", "rb"); /* open the file for read in binary mode and */ /* and don't mess with CR/LF combos */