(upbeat electronic music)
- [Instructor] For this challenge,
you will read a text file, decode it,
store its data in a structure,
and print the results using the standard library.
The text file represents an inventory.
Each line looks like this, and notice the tab characters,
which I've displayed here in red.
Each line in the file has two tabs
separating its three fields.
The first field is the SKU number,
SKU stands for Stock Keeping Unit,
and here it's just one, two, three, or four.
The second field is the name of the item,
and the third field is the description.
The file is named items.txt,
and you'll find it in Chapter Eight of the exercise files.
The output of your challenge will look something like this.
This challenge will use a lot of your knowledge
from the course so far,
including loops, operators, and file I/O.
Expect this one to take a little longer
than some of the others, perhaps a half hour or longer,
and feel free to take your time and experiment.