More read-file write-file tinkering.