Introduction to Text Files


☞ It consists of sequence of lines.

☞ A line is a sequence of characters (ASCII or UNCODE), stored on permanent storage media.

☞ Each line is terminated by a special character, known as EOL(End of Line), by default(‘\n’).

☞ It stores data in the form of text i.e. human readable form.

☞ Text files can be of following types :

1. Regular Text Files
2. Delimited Text Files

Regular Text Files

☞ It stores the text in the same form as typed.

☞ These files have a file extension as .txt.


Delimited Text Files

☞ A specified character is stored to separate the values i.e. after each value

☞ It is of two types :

1. TSV file (Tab Separated Values file) : 
Values are stored using tab. 
These file takes the extension as .txt or .csv

2. CSV file (Comma Separated Values file) :
Values are stored using comma. 
These file takes the extension  as .csv