Jonathan
Tue Sep 28 18:13:19 CDT 2004
That only says the data leaves the .Net world, it doesn't say it guarantees
the data isn't stored in Windows' File buffer.
Of course, you could disable write caching on the whole drive. But that is a
bit drastic.
--
Jonathan Allen
"Hermit Dave" <hermitd.REMOVE@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eYpjrDapEHA.592@TK2MSFTNGP11.phx.gbl...
> have a look at
>
> FileStream.Flush
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOFileStreamClassFlushTopic.asp
>
> Stream.Flush
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiostreamclassflushtopic.asp
>
>
>
> --
>
> Regards,
>
> Hermit Dave
> (
http://hdave.blogspot.com)
> "nulll" <nulll@clt.uk> wrote in message
> news:uAq52#ZpEHA.3724@TK2MSFTNGP10.phx.gbl...
> > Thank's.... But, Flush send data to SO, no? Send to SO don't ensure that
> it
> > was send to disk... In other languages, such as Java, work like it.. How
> > .NET Framework wok about it?
> >
> > I don't send to my client code a notification that data was send to disk
> > (when I call Flush), if has chance of the date is lost if SO or hardware
> > crash after flush....
> >
> >
> > Regards,
> > Nulll....
> >
> >
> > "Hermit Dave" <hermitd.REMOVE@CAPS.AND.DOTS.hotmail.com> wrote in
message
> > news:uQ4qiyZpEHA.3196@tk2msftngp13.phx.gbl...
> > > Flush() call on a stream should be sufficient to flush any data in the
> > > buffer. When you are done Close() and Dispose() the stream object and
> you
> > > can be pretty sure its done the job.
> > >
> > > --
> > >
> > > Regards,
> > >
> > > Hermit Dave
> > > (
http://hdave.blogspot.com)
> > > "nulll" <nulll@clt.uk> wrote in message
> > > news:OzhGL#YpEHA.536@TK2MSFTNGP11.phx.gbl...
> > > > Hello,
> > > >
> > > > I'm developing a application where the content write in
disk
> is
> > > > criticail, then I need ensure that the wirted data are really post
in
> > > disk.
> > > > I don't sure tha Flush method is sufficient. The .NET don't has a
> > > equivalent
> > > > ao Sync method in Java?
> > > >
> > > >
> > > > Regards...
> > > > Nulll
> > > >
> > >
> > >
> >
>
>