X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Jason Mills Newsgroups: comp.os.msdos.djgpp Subject: fstream and fflush Date: Thu, 21 Oct 2004 16:57:54 -0230 Organization: Memorial University of Newfoundland Lines: 6 Message-ID: NNTP-Posting-Host: jmills.ccore.mun.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: coranto.ucs.mun.ca 1098386875 3960 134.153.38.195 (21 Oct 2004 19:27:55 GMT) X-Complaints-To: usenet AT coranto DOT ucs DOT mun DOT ca NNTP-Posting-Date: Thu, 21 Oct 2004 19:27:55 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com After a few hours or debugging, I reached the conclusion that to flush a C++ fstream, you must either fstream::close(), or call fflush(NULL). Is this normal? Or is it a bug? Jason