posix: Added methods read and write to class FILE

Fixes bug 721478