added impl for reading and writing by byte in filestream