Coding for All
Level 9: Reading a File
Reading a File Print a file to the screen.

TYPE prints a text file to the screen. The name makes sense once you picture it: the computer types the file out for you. It is MS-DOS's version of bash's cat.

Machines of this era really did come with a README.TXT at the top of the disk, and TYPE was how you read it. Try it: TYPE README.TXT.

TYPE only makes sense on text files. Point it at a program and you get a screenful of nonsense and a lot of beeping, which is a mistake absolutely everybody made once.

TYPE HELLO.TXTPrint your file.
TYPE README.TXTPrint the disk's readme.
TYPE CONFIG.SYSThese are text files too.
Your task
  • Print HELLO.TXT with TYPE
  • Read the disk's README.TXT

Open this level in your browser to type the commands at a live terminal that answers back.