Unbuffered file io to avoid interference.

Changes from buffeed (fread, fwrite) to unbuffered (_read, _write) so
that two programs can acces the same files. It’ been running for hours
without  a hitch.