[FIX] give done file a .txt prefix
[FIX] open done file in write mode