From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: C-style FILE IO problems.. Date: Mon, 23 Dec 1996 20:50:32 -0800 Organization: Alcyone Systems Lines: 18 Message-ID: <32BF6118.716EB3BE@alcyone.com> References: <59enik$foo AT news DOT luth DOT se> <32BB5A76 DOT 27EC1FC AT alcyone DOT com> <59ggmj$3l AT news DOT luth DOT se> <32bd4607 DOT 11854444 AT ursa DOT smsu DOT edu> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Tony O'Bryan wrote: > In MS-DOS, you have the option of using binary or text files. Which > is the default is compiler dependent, so you should always specify > which mode you want to use. You have this option under Unix and other operating systems as well, and you should use it. The ANSI C standard, for instance, doesn't guarantee that certain file operations (like fseek/ftell) will operate in the same way on text vs. binary files, even on operating systems where there is little difference. -- Erik Max Francis | max AT alcyone DOT com Alcyone Systems | http://www.alcyone.com/max/ San Jose, California | 37 20 07 N 121 53 38 W &tSftDotIotE | R^4: the 4th R is respect "You must surely know if man made heaven | Then man made hell"