https://jdhao.github.io/2018/12/03/text_file_read_write_on_windows/