Program to open files based on extension