Nepedia
Back to Discover
Independent Reader
💻

Text file

technology Maturity 11-13 Next article →

A text file is a type of computer file. It holds words in a sequence of lines.

Windows Notepad .LOG file
Windows Notepad .LOG file

These files are very simple. They are often used to store information. Because they are simple, they are easy to fix if data gets broken.

Most text files do not have special styles. They do not use bold or slanted words. This is called plain text.

CsvDelimited001
CsvDelimited001

Some files might be empty. We call these zero-byte files.

Computers use encoding to read text. Encoding is a way to turn digital bits into letters. ASCII is a common way to write English text. Unicode is a much larger set. It can represent almost all known languages. UTF-8 is a very common way to use Unicode. It works well with the older ASCII style.

Different systems handle text in different ways. Windows often uses a .txt suffix for these files. Other files use different endings to show their purpose. For example, computer code is often kept in text files. Some systems use a marker to show the end of a file. This is called an end-of-file marker. Modern systems do not need this. They can track the file size themselves.

198 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.