Closed lightzl closed 6 years ago
Write the output file with binary type. That will not add '\r' before '\n', when the script runs in windows system. If you run the old one in windows system, the letter 'G' will be converted to '0xb 0xa 0x2', which actrually '0xa 0x2'.
Thx
Write the output file with binary type. That will not add '\r' before '\n', when the script runs in windows system. If you run the old one in windows system, the letter 'G' will be converted to '0xb 0xa 0x2', which actrually '0xa 0x2'.