delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/10/19:32:34

From: pneyz <pneyz AT bethany DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> 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"

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019