Difference between files written in binary and text mode

前端 未结 7 1859
南旧
南旧 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:05

    Additionally, when you fopen a file with "rt" the input is terminated on a Crtl-Z character.

提交回复
热议问题