refine the file stream, to file reader and writer. 0.9.142