From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29048 invoked from network); 27 Apr 1998 03:44:42 -0000 Received: from winnie.fit.edu (163.118.5.1) by mail2.redhat.com with SMTP; 27 Apr 1998 03:44:42 -0000 Received: from ee.fit.edu (yacht.ee.fit.edu [163.118.30.1]) by winnie.fit.edu (8.8.7/8.8.7) with SMTP id XAA08977 for ; Sun, 26 Apr 1998 23:40:49 -0400 (EDT) Received: from localhost by ee.fit.edu (SMI-8.6/SMI-SVR4) id XAA25088; Sun, 26 Apr 1998 23:43:51 -0400 Date: Sun, 26 Apr 1998 23:43:51 -0400 (EDT) From: Christopher Curtis To: axp-list@redhat.com Subject: Re: Problem with binary file I/O In-Reply-To: <199804270337.VAA10975@walleye.gonefishing.sk.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 26 Apr 1998, Larry Zimmerman wrote: > Thank you, problem solved. I guess I have an outdated man page. > The program works with fopen( ,"a+") in the addsta function, > since it does just append to this file. I used fopen( ,"r+") > in the repsta function (updates the record), and now it works. D'oh! Glad you didn't listen to me. "w+" would trunc the file. Heh. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/