什么是Flat File
2016-03-15 18:50
330 查看
"Flat"which means it has no structure for indexing and there are usually no structural relationships between the records.
一个flat file即可以是纯文本文件(plain text file),也可以是二进制文件(binary file)。
纯文本文件
plain text is the data (e.g. file contents) which represent only characters of readable material but not its graphical representation nor other objects (images, etc.). It may also include a limited number of characters that control simple arrangement of
text, such as line breaks or tabulation characters.
The encoding has traditionally been either ASCII, sometimes EBCDIC. Unicode-based encodings such as UTF-8 and UTF-16 are gradually replacing the older ASCII derivatives limited to 7 or 8 bit codes.
二进制文件
Binary files are usually thought of as being a sequence of bytes, which means the binary digits (bits) are grouped in eights. Binary files typically contain bytes that are intended to be interpreted as something other than text characters. Compiled computer
programs are typical examples; indeed, compiled applications are sometimes referred to, particularly by programmers, as binaries. But binary files can also mean that they contain images, sounds, compressed versions of other files, etc. — in short, any type
of file content whatsoever.
Some binary files contain headers, blocks of metadata used by a computer program to interpret the data in the file. The header often contains a signature or magic number which can identify the format. For example, a GIF file can contain multiple images, and
headers are used to identify and describe each block of image data. The leading bytes of the header would contain text like GIF87a or GIF89a that can identify the binary as a GIF file. If a binary file does not contain any headers, it may be called a flat
binary file.
一个flat file即可以是纯文本文件(plain text file),也可以是二进制文件(binary file)。
纯文本文件
plain text is the data (e.g. file contents) which represent only characters of readable material but not its graphical representation nor other objects (images, etc.). It may also include a limited number of characters that control simple arrangement of
text, such as line breaks or tabulation characters.
The encoding has traditionally been either ASCII, sometimes EBCDIC. Unicode-based encodings such as UTF-8 and UTF-16 are gradually replacing the older ASCII derivatives limited to 7 or 8 bit codes.
二进制文件
Binary files are usually thought of as being a sequence of bytes, which means the binary digits (bits) are grouped in eights. Binary files typically contain bytes that are intended to be interpreted as something other than text characters. Compiled computer
programs are typical examples; indeed, compiled applications are sometimes referred to, particularly by programmers, as binaries. But binary files can also mean that they contain images, sounds, compressed versions of other files, etc. — in short, any type
of file content whatsoever.
Some binary files contain headers, blocks of metadata used by a computer program to interpret the data in the file. The header often contains a signature or magic number which can identify the format. For example, a GIF file can contain multiple images, and
headers are used to identify and describe each block of image data. The leading bytes of the header would contain text like GIF87a or GIF89a that can identify the binary as a GIF file. If a binary file does not contain any headers, it may be called a flat
binary file.
相关文章推荐
- 第3周项目2—本月有几天?(switch语句)
- html嵌套MP4、PDF的简单方案
- 第四章 使用Docker镜像和仓库
- Linux 特殊符号使用: 倒引号`的使用
- 单用户模式与grub加密
- mmap发生Bus error
- Ubuntu 16.04 需要你的帮助,让 GNOME Software 更美观
- android_内容观察者
- 2016SDAU课程练习一1000
- 动态规划入门杭电1231
- CSS中的块级元素、内联元素(行内元素)
- 历届试题 分糖果 【模拟】
- leetcode:Valid Anagram 【Java】
- PHPUnit单元测试
- linux(ubuntu) java环境搭建
- 作业二(1):个人编程项目——四则运算
- 网站开发常用Sql语句
- Python图像处理库:PIL中Image,ImageDraw等基本模块介绍
- Android Listview相关
- 图片内存缓存