CArchive: unify all streamin and all streamout, add error checks
zero partial read content
Merge pull request #3757 from Karlson2k/CArchive_upd_01

CArchive update