A Text file comes with an extension .txt where as Document files with Extension .rtf (Rich Text File), .doc (Old, opens with all microsoft office versions), .docx (New, opens with Microsoft Office 2007 and later versions) The major difference in Text, Doc files is A Text file wont support formatting like Bold, italic, underlining, colouring, alignment, designs, its only text (look as this answer part in this page!) Whereas Document support all the factures as mentioned above (resembles as this total page)
a file can be anything, a document is a specifically formatted file containing text and/or pictures, etc. that is intended to be read using an appropriate application.
There might not be any difference. A text document is just characters, without any special formatting. A published document has been output from an application, usually to a printer. A published document could be a text document.
A JSP file is a text based document with a .jsp extension. The file can contain HTML content, Java code and other text.
A document can also be called a paper, a text file or simply a written document.
in terms of their use
Plain text has only the text of the document, without any formatting. "Rich text" also includes information about the document formatting, such as font, size, bold, italics, margins and so-on. Most word processing programs these days will read "RTF" - Rich Text Format - and format the document for you.
HTML
A plain text (.txt) file can be opened by any text based software so if the recipients do not have the Word software they can still read the text file.
Narrowly, "document" refers to a file containing text; more broadly, it can mean a spreadsheet or other file with material that can be read.
It is treated the same way as what the text between title tags is in a HTML document. It will appear in the title bar. It is not the actual name of the file.
The mp3 is a music file. The PDF is (usually) a text document file. It is possible to embed a MP3 audio file into a PDF document, but you will need to purchase Adobe Acrobat Professional (about $500.00) to do it.
The difference between application-centric approach and document-centric approach is that with application-centric approach you open an application (such as notepad) and then create a document. With document-centric approach you create a document without opening an application first. You can create a document from the desktop by right clicking on the desktop, then click on New. On the submenu click on text document (or whichever command you choose).