The question to explore

Give your story a home

How does a program find the right file?

About 8 minutes / Suggested pace / No account needed

  • File
  • Folder
  • Path
Try the experiment

What this activity helps you do

A path is a file’s address. Change the folder or name and watch that address change. An AI coding helper needs the right address to read or edit the right draft.

Local teaching illustration / No AI model call

  1. Read the displayed path for story.txt in the drafts folder.
  2. Use the Folder menu to choose Research or Characters. Change the virtual file name and watch the path update.
  3. Edit the line of text. Choose Download a text copy if you want to keep it, then compare the virtual address with the downloaded file name.
/workshop/drafts/story.txt

Change a control to explore the example when JavaScript is enabled.

The idea

A file holds your words. A folder groups files. A path tells a program which file you mean. Moving a file can change its address without changing its words.

This activity only shows a pretend location. It does not move files on your computer. The download saves workshop-story.txt and writes your chosen pretend path inside it.

Take this with you

What changed?

Content and location are different. The same story can have a new address.

Try explaining it.

If a program still asks for the old path after a move, should it silently pretend the file is there?

Open a possible explanation

No. It needs an updated reference or an explicit missing-file result. Guessing a different file could supply the wrong story.

Choose what to try next

Keep exploring, or stay here and try another variation.

By Jonathan Simone, with AI assistance. First edition, October 2026. Activities are fictional teaching examples, not measured AI performance. Help us improve this lesson.

An optional completion mark and your explanation preference can be saved to this browser. Exercise entries stay in this page unless you choose to download a file. View or clear your check-ins.