A plain-text file stores characters that a text editor can show directly. It does not require the application that created it to reconstruct a page, workbook, or drawing before you can inspect the underlying content.
Plain text matters because it gives students a simple source that many tools can open, search, compare, and transform. Use it when text can represent the work well. Use a richer format when layout, formulas, media, or a required review workflow is part of the job.
Plain text stores characters
Open a file named hello.txt in a basic text editor and you might see:
Course: CS 101
Task: Run the first program
Status: verified
Those visible characters are the file’s primary content. The computer still stores them as bytes using a character encoding, such as UTF-8. The editor interprets those bytes as characters and lines.
Plain text is not the same as unstructured text. Syntax can give characters a defined meaning:
- Markdown uses markers for headings, links, lists, and code.
- Source code follows the grammar of a programming language.
- CSV separates table fields and records.
- JSON represents values, arrays, and objects.
- YAML and TOML represent structured configuration or data.
These are all text formats, but they are not interchangeable. A JSON parser does not interpret Markdown headings, and an incorrect comma or quotation mark can change how CSV data is read.
The CommonMark specification describes Markdown as a plain-text format for structured documents. Its block and inline structures give ordinary characters a rendered meaning while leaving the source readable.
Rich document formats store more than visible text
A word-processing document can contain text, styles, comments, tracked changes, page settings, images, and application metadata. A spreadsheet workbook can contain cell values, formulas, formatting, charts, and several worksheets.
Those capabilities are useful. They also mean that a basic text editor is not the correct tool for interpreting the complete file.
Compare two course notes:
week-01.mdcontains headings, paragraphs, links, and code as readable characters.week-01.docxpackages document content and layout information for software that understands the format.
Changing the .docx extension to .txt does not convert the document.
Extensions help software and people identify an intended format; they do not
change the content stored inside.
Plain text has four practical strengths
1. Many tools can inspect it
A Markdown file can be opened in a simple editor, a programming editor, a terminal pager, or a Markdown application. The views may differ, but the source characters remain available.
This reduces dependence on one editor. It does not eliminate every dependency: tools can interpret syntax differently, and correct character encoding still matters.
2. General-purpose search works well
Text can be searched by filename, editor, terminal tool, script, or indexing service. A student can search a course folder for an error message, assignment name, or decision recorded months earlier.
Searchability depends on organization and access. An encrypted, compressed, or remote file may need an appropriate tool or permission before search can reach its text.
3. Changes can be compared
Text-oriented tools can compare lines and show which parts were added, removed, or changed. This makes review useful for notes, configuration, documentation, and source code.
Line comparisons are evidence, not understanding. A one-character change can be important, and a generated rewrite can produce a large difference with little conceptual change.
4. Scripts can transform it
A program can read a text file, validate its structure, extract values, or produce another artifact. Markdown can become HTML or PDF. CSV can become a chart. Configuration text can control a reproducible tool.
Automation still requires a defined format. “It is text” does not mean “any program knows what it means.”
Plain text can remain useful for a long time
Plain text has a small interpretation requirement: identify the character encoding, then interpret any format syntax. That simplicity can make migration and recovery easier than with a workflow tied to one application.
Do not turn this into a promise that every text file will last forever. You still need:
- a known encoding;
- documentation for specialized syntax;
- backups and tested recovery;
- understandable filenames and folders; and
- periodic migration when tools or requirements change.
Longevity comes from maintained information, open inspection, and recovery practice—not from a filename extension alone.
Know when plain text is not enough
Choose a richer format when the work requires capabilities that plain text does not represent efficiently:
- exact page layout and tracked review for a required paper;
- formulas, charts, and interactive exploration in a spreadsheet;
- slides, photographs, audio, video, or diagrams;
- a final fixed-layout submission; or
- an accessibility workflow specified by a course or institution.
A text-first approach means keeping appropriate source material in text. It does not mean rejecting software that better serves the task.
One project may use several representations:
| Need | Suitable representation |
|---|---|
| Project instructions | Markdown |
| Program behavior | Source code |
| Small exchange table | CSV |
| Interactive analysis | Spreadsheet |
| Final fixed-layout handout |
The right question is not “Can this be text?” It is “Which representation preserves the information and workflow this task requires?”
Inspect one file in three views
Create hello.md:
# First plain-text exercise
- Open this file in a text editor.
- Preview the Markdown.
- Display the source in a terminal.
Result: not yet verified
Then open the same file in:
- a basic text editor;
- an application with Markdown preview; and
- a terminal command that displays text. (If you are new to commands, the Terminal, Shell, and Command: Three Different Things guide introduces how to run them.)
Use a command appropriate to your operating system or course instructions. Do not paste an unfamiliar command merely to complete the exercise.
Compare the views:
- Which characters appear in the source?
- Which markers become visual structure in the preview?
- Does any view alter the file?
- Can you still understand the source without the preview?
Change not yet verified to verified in one editor. Reopen the file in the
other two views and confirm that all of them see the same saved source.
Common mistakes
- Treating the extension as the content. Inspect the file with an appropriate tool.
- Calling plain text format-free. Encoding and syntax still matter.
- Assuming every text format is easy for people. Machine-oriented JSON can be plain text and still be difficult to read.
- Forcing visual work into text. Choose a representation that preserves the needed information.
- Running a text file because it looks readable. Readability does not make a script or downloaded content trustworthy.
- Keeping only generated output. Preserve the source needed for future changes.
Do this now
Complete the three-view exercise. Keep hello.md as the first file in a small
practice folder. Record which parts are literal source and which parts exist
only in the rendered view.
Log what you learned
Record only:
- Result: What did the action produce?
- Evidence: What observation, test, or source supports that result?
- Next action or unresolved question: What should happen next?
Next, use the same foundation to write a useful Markdown README in one sitting.