Avoids unnecessary writes of DiurnalDictionary.txt, also now opens files in binary.
Trivial merge of recent multi-write changes and my own.