Find the correct version of a file
Compare three copies of a club guide. Choose the one with the right information and check your saved copy.
Get the files
You need: A computer and a text editor, such as Notepad. No coding needed.
The club and files are made up. This activity compares existing copies; it does not recover deleted files.
Open the files
- Find recover-a-file.zip in your Downloads folder.
- On Windows, right-click the ZIP and choose Extract All to unpack the files.
- Open the extracted folder, then open the recover-a-file folder inside it.
- Right-click README.md, choose Open with, and select a text editor such as Notepad.
- Open requirements.md, then the three .txt files in the copies folder, using the same text editor.
The optional checker needs Python 3. You can complete the activity without it.
Do the project
- Look for all eight required lines in each file. Record what is right or missing. Do not choose a file just because its name says “final” or “newest”.
- Copy the matching file into a new folder named handoff. Keep the original files unchanged. Write a note explaining your choice.
- Open your saved copy and check it again. Compare your answers with worked-example/, or use the optional Python checker.
Check your work
Compare each file with the eight required lines.
Only guide-backup.txt contains all eight required lines.
Open the copy in your handoff folder.
The file’s contents still match guide-backup.txt. A matching filename alone is not enough.
Optional: run the Python checker on the finished example.
All eight required lines pass. The saved copy matches, and all three original files are unchanged.
Keep your work
- Your comparison of the three files
- The saved copy you checked
- A note naming the original file, your checks, and what this activity did not test
Extra practice and separate files
Put your handoff folder in a ZIP, extract it into a different folder, and check the file again. Write down any copying or packaging mistake you find.
Download one file
- Requirements (.md)
- Worked comparison (.csv)
- Verified handoff copy (.txt)
- Worked test results (.csv)
- Handoff note (.md)
All of these files are also in the ZIP download above.