file_handler: support offset of read and write