resource/file: write/read fixes.
file: appended methods.
read implement