Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!shelby!agate!usenet.ins.cwru.edu!cwlim!trier From: trier@cwlim.INS.CWRU.Edu (Stephen C. Trier) Newsgroups: comp.os.msdos.programmer Subject: Re: Fastest dump to disk? Message-ID: <1991Feb18.150744.21105@usenet.ins.cwru.edu> Date: 18 Feb 91 15:07:44 GMT References: <91043.105618JJLUCSY@MTUS5.BITNET> <2184@umriscc.isc.umr.edu> <1091@usage.csd.unsw.oz.au> Sender: news@usenet.ins.cwru.edu Reply-To: trier@po.CWRU.Edu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 14 Nntp-Posting-Host: cwlim.ins.cwru.edu Since you are using Turbo C, use _open, _write, and _close. _write is a direct call to MS-DOS's "write" function call. That's about as fast as you can get. If you _must_ use open, write, and close, be sure to do so in binary mode. It can be substantially faster than text mode, since it eliminates a lot of buffer-scanning. _open, _write, and _close automatically use binary mode. (It's inherent in their function.) -- Stephen Trier Case Western Reserve University Work: trier@cwlim.ins.cwru.edu Information Network Services Home: sct@seldon.clv.oh.us %% Any opinions above are my own. %%