add buffer to file read