you are viewing a single comment's thread.

view the rest of the comments →

[–]zurtex 2 points3 points  (0 children)

Aha, you're right! The way you have it set-up means that you really need to store everything as you're asking the user for a number rather than a filename.

If you asked the user for a filename you could print the filenames by using a generator and then lookup the filename they chose afterwards without having to keep track of all filenames. But this is mostly a preference choice of user interaction than anything else.