impl some file astream interfaces