Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!ogcvax!omsvax!hplabs!sri-unix!gwyn@brl-vld From: gwyn%brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: r+ on fopen. Message-ID: <11777@sri-arpa.UUCP> Date: Thu, 15-Sep-83 09:04:13 EDT Article-I.D.: sri-arpa.11777 Posted: Thu Sep 15 09:04:13 1983 Date-Received: Fri, 23-Sep-83 22:56:41 EDT Lines: 10 From: Doug Gwyn (VLD/VMB) Your anonymous hacker should read the manual; there is nothing wrong with fopen( , "r+" ). "When a file is opened for update, both input and output may be done on the resulting stream. However, output may not be directly followed by input without an intervening fseek or rewind, and input may not be directly followed by output without an intervening fseek, rewind, or an input operation which encounters end-of-file."