Introduction to the RTF File

Source: Internet
Author: User

RTF FormatIs a file format that many software can recognize. For example, word, wpsoffice, and Excel files can all be opened in the RTF format, which indicates that this format is more common. RTF is short for richtextformat, meaning multi-text format. This is a file similar to the doc format (Word Document). It has good compatibility and can be opened and edited using the "WordPad" in Windows "attachments. When you use WordPad to open an RTF file, you will see the content of the file. To view the source code of the TRF file, you just need to use NotePad to open it. That is to say, you can use NotePad to edit an RTF file just like editing an HTML file. For common users, the RTF format is a good File Format Conversion Tool for transferring formatted text documents between different applications. The full name of CSV is comma separated value, which is also called comma-separated value files. CSV is a plain text file format used to store data and is usually used for workbooks or database software. If the rule starts with 0, it is not left blank and the unit of action is used. 1. The column name can be included or not included, and the column name is the first row of the file. Two rows of data are empty. 3. Use a half-width symbol as a separator. If the column is empty, its existence must be indicated. If four columns of content exist, use "" to include them. If the five columns contain "", use "to include them. 6. quotation marks are used to read and write files. The internal code format is not limited. It can be ASCII, Unicode, or other. The abbreviation of comma separated value. The Archive type displayed in the archive manager is "comma-separated". According to the original settings of the computer, if you click this archive directly, the computer opens the file in Excel mode. However, it is recommended that you do not do this, because if the CSV file is opened in Excel, the CRC value will be converted to scientific mark for storage due to the conversion of computer file data, the CRC value in the file is incorrect. This is what I learned when I was a beginner. However, if you want to have a look at the real face of the CSV file, I suggest you use WordPad or notepad (Note) to enable it, another method is to save a new file and then enable it in Excel. After the CSV file is enabled, it contains four or five fields (parts) and records from left to right the file name (XXXX. JPG), file size (in bytes), CRC32 (consisting of eight English letters or numbers), file path (subdirectory name of the file storage) and file content description (generally, the star's English name or album name may be blank ). The "file path" in the fourth column does not exist because each person saves and organizes images. Generally, there is a CSV file containing the "file path" column, also known as ecsv archives,

 

RTFIs a very popular file structure, which is supported by many text editors. VB and other development tools even provide richtxtbox controls. Programmers who write common tools should consider adding the function of reading and writing RTF files to their own software. This requires a full understanding of the structure of the RTF. Now, the most important means of publishing information is www. The conversion from RTF to HTML in editing software is also something programmers should consider.
The structure of the RTF file is not complex, but the content is numerous. Each RTF file is a text file, which is formatted by the RTF reader during display. At the beginning of the file is {\ RTF, Which is essential as a sign of the RTF file. The RTF reader determines whether a file is in the RTF format based on it. Then there is the file header and body. The file header includes several data structures, such as the font table, file table, and color table. The font and table style in the text are formatted Based on the file header information. Each table is enclosed in a pair of braces and contains many commands starting with the character.

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.