Types of Text File
There are many types of text file as follows:
1. Plain Text File
This is a type where there is no special formatting of text such as italic, bold, heading, subheading etc. In Microsoft OS Notepad is used to create plain text file. In Microsoft OS These files are saved with the .txt extension.
2. Comma Separated File
This file remains in .csv extension. This file is used to contain tabular data. Each line represents a record, and fields within each record are separated by commas.
3. HTML File
HTML file is used to create websites and web applications. This is saved with .html extension. In this file all textual data is contained in Hyper Text Markup Language.
4. Doc and Docx file
This type of file is created by MS word in Microsoft OS. In this kind of file Text can be stored in a proper format. Heading, footer can be added. and bold, italic and various types of fonts can be used in writing.
5. Markdown File
In this type of file text is written through Markdown language. This type of file is used to create proper documentation. This file uses .md extension.
6. Programming language Source code File
Text file is also used write programming code of various languages such as python, Javascript, C etc. This file can be saved in various extension according to the programming language such as .py for python, .js for javascript etc.
What is a Text File?
A file is basically a container that contains data. A text file is a very important and simplest kind of file. Text file is used to store data in textual format.