X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.6 required=5.0 tests=AWL,BARRACUDA_BRBL,BAYES_50,RCVD_IN_BL_SPAMCOP_NET X-Spam-Check-By: sourceware.org Message-ID: <499ED7D6.7010804@mff.cuni.cz> Date: Fri, 20 Feb 2009 17:18:30 +0100 From: Pavel Kudrna User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: fstream - problem with reading/writing to file References: <499DAEA9 DOT 90309 AT mff DOT cuni DOT cz> <499DCB5C DOT 2090606 AT sbcglobal DOT net> In-Reply-To: <499DCB5C.2090606@sbcglobal.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Greg Chicares wrote: > On 2009-02-19 20:33Z, Tim McDaniel wrote: > > I think you mean C99 7.19.5.3/6, which says > > "output shall not be directly followed by input without an intervening > call to the fflush function or to a file positioning function" > and vice versa. > > The C++ standard refers to the C standard for low-level stuff like this. > Thanks for answer. I should look how it is exactly in C++ because fstream::flush() call between read/write does not help. Pavel Kudrna -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/