Hmm... Well, you could serialize your town objects. In that case, each town would have a name field. So then the actual name of the file wouldn't matter, you would load your twn01.dat file, transforming it to an object, and read its name field.
True! How did this slip pass my thought process? Thanks a bunch TheChubu!