Forum Moderators: coopster & phranque

Message Too Old, No Replies

Simple backup on write

Simple backup

         

Mountain Man

7:17 pm on Dec 14, 2001 (gmt 0)



I have a file which keeps getting corrupted sometimes when writing (I assume the program is interrupted and doesn't finish), How would I write to a backup file, and rename it to original only after work is done? Can you give me an example?

Brett_Tabke

8:52 am on Dec 17, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



What language are you working in MM?

Mountain Man

10:34 pm on Dec 19, 2001 (gmt 0)




Working in Perl
My data is being corrupted, I need to write to backup, and then make it the original without losing data.