add Readline(), modify Read(), Write() not to exit