What is the difference between a text file and a binary file?

Source: Internet
Author: User
For example, storage "ABCD", if stored as a text file, what is the binary form of storage? If the store is a binary file, then what is the binary form of the store, and I want to cite an example

Encoding is only related to storage, and is not related to computation, is it?
For example, 2 is a value that is stored in ASCII, and is assigned to 4 bytes at the time of calculation 10

Reply content:

For example, storage "ABCD", if stored as a text file, what is the binary form of storage? If the store is a binary file, then what is the binary form of the store, and I want to cite an example

Encoding is only related to storage, and is not related to computation, is it?
For example, 2 is a value that is stored in ASCII, and is assigned to 4 bytes at the time of calculation 10

Big Brother really even ask a lot of questions about binary, coding, why not in a piece asked?

All files are essentially the same, and are stored in binary. The most so distinguish between text files and binary files, because text files are mainly used to show people, so will focus on the ability to read, and its interior will specifically carry the message to express their own text encoding. In addition to distinguishing between text files and binaries, text files can be edited using a normal text editor, and binary files are best not to be edited with a text editor in order to tell the user.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.