{ const char* p = "\r\n"; std::ofstream f1("d:\\1.a"); f1.write(p,strlen(p)); f1.close(); std::ofstream f2("d:\\2.a",std::ios::binary); f2.write(p,strlen(p)); f2.close(); }
开发环境:Win10+VC6
用UE打开 1.a三个字节\r\r\n 2.a两个字节\r\n
{ const char* p = "\r\n"; std::ofstream f1("d:\\1.a"); f1.write(p,strlen(p)); f1.close(); std::ofstream f2("d:\\2.a",std::ios::binary); f2.write(p,strlen(p)); f2.close(); }
开发环境:Win10+VC6
用UE打开 1.a三个字节\r\r\n 2.a两个字节\r\n