text file

A file holding only readable characters arranged in lines, such as a .txt, .csv or configuration file, as opposed to a binary file such as an image.

In more detail

Configuration files, source code and logs are text files, which is why they can be opened in any text editor and compared line by line with diff. The characters are stored as bytes using a character encoding, and programs decode them back into text when reading. A .txt ending is only a naming convention that says plain text.

Example

marker.txt in the idempotency lesson is a text file written by the copy module.

Related terms

Taught in

References

Certification courses