Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Text file, binary file?

Dikenal juga sebagai: text file · binary file

Definition 6.9 University Computer Science — Year 1 · Bab 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.
Baca dalam konteks →