[Mono-devel-list] Flushing a FileStream to disk
Jeroen Frijters
jeroen at sumatra.nl
Fri Nov 5 06:27:39 EST 2004
Hi,
In IKVM I need a way to flush a FileStream to disk (not just flushing
the managed buffer to the OS, which is what FileStream.Flush does).
On Windows I use:
void FlushToDisk(FileStream fs)
{
if(!FlushFileBuffers(fs.Handle))
throw new IOException();
}
[DllImport("kernel32")]
static extern bool FlushFileBuffers(IntPtr handle);
What would be the equivalent on Mono on Linux?
Thanks.
Regards,
Jeroen
More information about the Mono-devel-list
mailing list