Change how read and write errors are detected on fstream based streams.
drwxr-xr-x - cde