Hello
It's not .NET Framework issue. It depends on system you are running on. And
I guess, that you will have a broken file if you will restart your system in
the middle of file writing.
You can write your file to a temporary folder. And when the whole file will
be written you can move it to desired place. If system will be shutdown in
this moment, then you will have a broken file in temporary directory. But
you can always clean up it on systems startup. But, it will work only if
your temporary folder is resides on the same partition as your desired
location, so file moving can be done with one shot.
--
With best regards,
Andrew
http://www.codeproject.com/script/pr...asp?id=1181072
"Daniel" <so*******************@yahoo.com> wrote in message
news:eb**************@TK2MSFTNGP12.phx.gbl...
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.