correcting IoMode check for SEEK_AND_WRITE
Merge pull request #294 from daniel-meister/master

correcting IoMode check for SEEK_AND_WRITE