Write the output to a temporary file and, when that is successfully closed rename it to replace the original.
Or, write the result to a buffer in memory and when that is complete write the buffer to the file.
Write the output to a temporary file and, when that is successfully closed rename it to replace the original.
Or, write the result to a buffer in memory and when that is complete write the buffer to the file.
vikuseth (21st December 2012)
Bookmarks