[PATCH] msvcirt: Implement a part of fstream.