Nepedia
Back to Discover
Fluent Reader
💻

Text file

technology Maturity 11-13 Next article →

A text file is a special kind of computer file. It holds information as a sequence of lines of electronic text.

Windows Notepad .LOG file
Windows Notepad .LOG file

You can think of it as a digital container for words. Most people use text files to store simple information. They are much easier to use than other file types. They avoid tricky problems like differences in how machines work. If a text file gets broken, it is often easy to fix.

CsvDelimited001
CsvDelimited001

You can often still read the rest of the file.

How a text file works depends on the computer system. Some systems, like CP/M, use a special marker to show the end of a file. This is called an end-of-file or EOF marker. Modern systems like Windows and Unix-like systems do not need this. They simply keep track of the file size in bytes. Other systems, such as OpenVMS, use record-oriented filesystems. These store text as a sequence of fixed-length or variable-length records. Most systems use a symbol to show where a new line starts. In Windows, this is a carriage return and a line feed.

History shows us how these files have changed over time. In the old classic Mac OS, a file was a text file if it had a specific label. These older files used a single character to end each line. IBM also helped shape how we see text through OEM encodings. These were used for the original IBM PC text mode displays. They included special characters for drawing lines and shapes. Today, most computers have moved toward more universal ways of reading text. This helps different machines talk to each other more easily.

There are many important facts about how text is written. Computers use encoding to turn digital data into letters. ASCII is a very common set of characters for English. Unicode is a much larger set that covers almost all human languages. UTF-8 is the most common way to use Unicode today. It is special because it works perfectly with the older ASCII style.

CsvDelimited001
CsvDelimited001

A file with no data at all is called a zero-byte file. On Windows, these files usually end with a .txt suffix.

You can see text files in many things you use every day. When you use a simple text editor, you are looking at plain text. This means there is no bold or slanted text to see. Some people use lightweight markup languages like markdown or wikitext. These are like an extension of plain text files. They add small notes that a computer can read. Even things like CSV files are a type of text file. They help organize data into simple rows and columns.

CsvDelimited001
CsvDelimited001
449 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:CsvDelimited001.svg
CsvDelimited001.svg
File:Windows Notepad .LOG file.png
Windows Notepad .LOG file.png
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.