全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Text file, binary file?

又称: text file · binary file

Definition 6.9 University Computer Science — Year 1 · 第 6 章 — Strings, Structures and Files

A text file holds characters only, usually in lines, so that a person can read it and any program can parse it; a number in it is a sequence of digit characters. A binary file holds bytes in a format defined by a program, such as the bytes of values copied from memory; it is smaller and faster to read, but meaningless without its format.

The same three numbers. In the text file each digit is a character code and each line ends with a newline (0a); its size depends on how many digits the numbers have. In the binary file each number is four bytes, whatever its value, least significant byte first.
The same three numbers. In the text file each digit is a character code and each line ends with a newline (0a); its size depends on how many digits the numbers have. In the binary file each number is four bytes, whatever its value, least significant byte first.
在原文中阅读 →