Difference between files written in binary and text mode

前端 未结 7 1658
南旧
南旧 2020-11-22 14:20

What translation occurs when writing to a file that was opened in text mode that does not occur in binary mode? Specifically in MS Visual C.

unsigned char bu         


        
相关标签:
7条回答
  • 2020-11-22 15:10

    In 'w' mode, the file is opened in write mode and the basic coding is 'utf-8' in 'wb' mode, the file is opened in write -binary mode and it is resposible for writing other special characters and the encoding may be 'utf-16le' or others

    0 讨论(0)
提交回复
热议问题