Jon
Tue Sep 06 15:36:23 CDT 2005
(I've truncated the subject line - it's really not meant for whole
questions!)
Daniel <softwareengineer98037@yahoo.com> wrote:
> Is there any way for System.IO.StreamWriter Write method to write out part
> of the string to file. such as if the machine is shut down half way through?
> or does the file not actually exist until the entire write is completed
> successfully.
I don't think there's any guarantee of that, no. It would almost
certainly depend on what the operating system did, but I think it
wouldn't be wise to rely on that sort of atomicity.
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too