A version that crashes due to simultaneous io.

Uses fread and fwrite.