Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Text file, binary file?

Também chamado de: text file · binary file

Definition 6.9 University Computer Science — Year 1 · Capítulo 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.
Ler no capítulo →