Go to previous pageGo to next page

1.1.1. Plain Text Files

Plain text files (or simply text files) are files which contain ordinary readable characters such as letters, digits, and punctuation (including space). They also include tabs, return commands, etc. as control characters.
Generally, a plain text file contains characters in an termASCII-based encoding without any embedded information such as font information, termhyperlinks or inline images. (Wikipedia)

Although text files are often meant for humans to read, they are also commonly used for data storage.

The storage of data in plain text files is defined by the following points:

  • typically one row per record
  • fixed width or delimited
  • special character as delimiter such as tab, ";", etc.
  • various encodings (ASCII, termISO8859-1,UTF8, UTF16)
Keyboard KeysKeyboard Keys (Wikipedia)

Example of a Plain Text File

Here is a very small example how a structured text might look like.

Example of Plain Text FileExample of Plain Text File

We use quotes to indicate text and semicolons as a delimiter. The first line is just a header line, not real data.

Advantages

The advantages of plain text files are:

  • Compactness of the files,
  • Simplicity of the files,
  • They can be interpreted by humans.

Disadvantages

The disadvantages of plain text files are:

  • not useful for larger datasets, since currently no efficient management tools for larger datasets exist.
  • access to individual records and attributes complicated, since the file is only structured with columns and rows.

Usage Scenarios

Plain text files are mainly used for small unstructured datasets, for the import/export to/from spreadsheet programs or for the import into GIS or Mapping Software.



Go to previous page
Go to next page