From: pneyz Newsgroups: comp.os.msdos.djgpp Subject: Re: Error Writing to File Date: Wed, 10 Dec 1997 15:20:47 -0800 Organization: Smoof Team Lines: 8 Message-ID: <348F23CF.DC566DC7@bethany.edu> References: <348EFB98 DOT 25F8 AT epix DOT net> NNTP-Posting-Host: scz-ca5-15.ix.netcom.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 Precedence: bulk > if((in = fopen(argv[1], "rb+")) == NULL) Oops, I forgot to look at this. Try opening in "wb" mode. That's write-binary instead of read-binary. I'm not sure if it makes a difference, but it should. pneyz[smoof.ganja] "Fine Malt Coding"