Open and close file for each write.
Cosmetics