Article View: borland.public.cppbuilder.nativeapi
Article #1957FlushFileBuffers on iostream
From: Old Wolf
Date: Mon, 14 May 2007 22:20
Date: Mon, 14 May 2007 22:20
11 lines
1142 bytes
1142 bytes
Is it possible to obtain a Windows HANDLE for a file that I've opened as a C++ fstream, so that I can call FlushFileBuffers on it? I'm not sure whether fstream::sync (or stdio fflush) calls this function; I think those functions just flush data from the C or C++ library buffering, to the operating system. The FlushFileBuffers causes the operating system to ensure the data has been sent to the disk.
Technical Details
Message-ID:
<4648e0c5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3a931b880c69cb1c,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Old Wolf" <oldwolf@inspire.net.nz> Sender: "Old Wolf" <oldwolf@inspire.net.nz> Reply-To: "Old Wolf" <oldwolf@inspire.net.nz> Subject: FlushFileBuffers on iostream Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 202.27.210.214 NNTP-Posting-Host: 207.105.83.66 Message-ID: <4648e0c5$1@newsgroups.borland.com> Date: 14 May 2007 15:20:53 -0700 X-Trace: newsgroups.borland.com 1179181253 207.105.83.66 (14 May 2007 15:20:53 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail