| • Science | • People | • Locations | • Timeline |
| Contents | ||
Since a disk drive, or indeed any computer storage, can store only bits, the computer must have some way of converting information to 0s and 1s and vice-versa. There are different kinds of formats for different kinds of information. However, within any format type e.g. word processor documents, there will typically be several different - and sometimes competing - formats.
Some file formats are designed to store very particular sorts of data: the JPEG format, for example, is designed only to store static images. Other file formats, however, are designed for storage of several different types of data: the GIF format supports storage of both still images and simple animations, and the AVI format can act as a container for many different types of multimedia. A text file is simply one that stores any text, in a format such as ASCII or Unicode, with few if any control characters. Some file formats, such as HTMLHyperText Markup Language (HTML) is a markup language designed for creating web pages, that is, information presented on the World Wide Web. Defined as a simple "application" of SGML, which is used by organizations with complex publishing requirements, HT, or the source codeSource code (commonly just source or code is any series of statements written in some human-readable computer programming language. In modern programming languages, the source code which constitutes a software program is usually in several text files, but of some particular programming language, are in fact also text files, but adhere to more specific rules which allow them to be used for specific purposes.
It is sometimes possible to cause a program to read a file encoded in one format as if it were encoded in another format. For example, either by making minor modifications to a Microsoft WordMicrosoft Word is a word processor program from Microsoft. It was originally written by Richard Brodie for IBM PC computers running DOS in 1983. Later versions were created for the Apple Macintosh ( 1984), SCO UNIX and Microsoft Windows ( 1989). It became document or by using a music-playing program that deals in "headerless" audio files, one can play a Microsoft WordMicrosoft Word is a word processor program from Microsoft. It was originally written by Richard Brodie for IBM PC computers running DOS in 1983. Later versions were created for the Apple Macintosh ( 1984), SCO UNIX and Microsoft Windows ( 1989). It became document as if it were a song. The result does not sound very musical, however. This is so because a sensible arrangement of bits in one format is almost always nonsensical in another.
It should be noted that it is very difficult to make a principled distinction between a file format and a programming languageAn alternate rewrite has been has been. Please refer to it for large rewrites. A programming language or computer language is a standardized communication technique for expressing instructions to a computer. It is a set of syntactic and semantic rules use, or between a "normal program" and a programming language interpreter. A programming language can be seen as a file format for storing algorithms, while even a simple image file viewer can be seen as an "interpreter" for, say, the GIF "language".