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

Source: Internet
Author: User
For example, Storage & quot; abcd & quot;. if it is stored as a text file, what is the binary format of storage? If it is stored as a binary file, what is the binary format of storage? do you want to give an example where encoding is only related to storage and computing? For example, if 2 is a value stored in ascii format and "abcd" is stored in computing, what is the binary format stored in text files? If the storage is a binary file, what is the binary format of the storage?

Encoding is only related to storage and computing, right?
For example, if 2 is stored in ascii format, 4 bytes and 10 bytes are converted during calculation.

Reply content:

For example, if "abcd" is stored as a text file, what is the binary storage format? If the storage is a binary file, what is the binary format of the storage?

Encoding is only related to storage and computing, right?
For example, if 2 is stored in ascii format, 4 bytes and 10 bytes are converted during calculation.

Big brother is really talking about binary and encoding-related issues. Why can't I ask them one by one ......

All files are essentially the same and are stored in binary. The most important difference between a text file and a binary file is that a text file is mainly used for display, so it will focus on reading, and it will specifically carry information that represents its own text encoding. In addition, to distinguish between a text file and a binary file, you can use a common text editor to edit a text file, while it is best not to use a text editor to edit a binary file.

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.