title: VB.Net - Is it possible for the appendAllText subroutine to not write all text if the program is halted?
body: <p>So I'm writing a program that keeps track of database operations done while no internet is available in a text file. Once internet is available, the program uses the information in this file to execute all the operations made while there was no internet. I use the appendAllText method to write to the text file. I'm trying to anticipate every error that could possibly occur, and one of the things I'm worried about is, what if the program is halted while the appendAllText method is being executed (say maybe the program is forcibly closed or maybe the computer shuts off due to a powerout)? Could this lead to not all information being written to the text file or maybe even worse, corrupting the text file? I'm not sure how this method works at a low-level and I know this is a very unlikely scenario, but I just want to make sure no information about the database is ever lost as this could lead to pretty nasty errors.</p>