What does \x00 mean in binary file?

后端 未结 2 1733
闹比i
闹比i 2021-02-03 22:41

Once I asked a guy \"what is the difference between ASCII and Binary files?\"

And he said \"Binary files always have \\x00\"

I\'ve been searching about this and

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-03 23:19

    Wrong. ASCII files have NULL characters. In fact, every string in ASCII ends at a NULL.

    ASCII files are files that only contain ASCII characters x0 - x127.

    Binary files contain data and each individual byte can be an ascii character, an integer, pointer, etc. Its just how to write data to the file and how you rad it back.

提交回复
热议问题