document : (1) an original or official paper relied on as the basis, proof, or support of something (2) a writing conveying information (3) a computer file containing information input by a computer user and usually created with an application (as a word processor) — Webster See also OneLook, Free Dictionary, Wiktionary
Documentt is a written, drawn, presented or recorded representation of thoughts. In the past it was usually used as a term for a written proof used as evidence. In the computer age, a document is usually used to describe a primarily textual file, along with its structure and design, such as fonts, colors and additional images. The modern term ‘document’ can no longer be defined by it transmission medium (such as paper), following the existence of electronic documents. ‘Documentation’ has more meanings than a written or drawn presentation of thoughts. The formal term ‘document’ is defined in Library and information science and in documentation science, as a basic theoretical construct. It is everything which may be preserved or represented in order to serve as evidence for some purpose. — Wikipedia
Here are links to pages about closely related subjects.