Safely save a text file. If something goes wrong while writing, the new file is simply discarded while the old one is untouched
See Implementation
Safely save a text file. If something goes wrong while writing, the new file is simply discarded while the old one is untouched