My instructor's code looks almost exactly the same, and yet my program crashes when I enter something to define filename. I see no real difference between my code and my instructor's code, which works. Can someone explain why I'm getting a Windows dialogue crash with my program and how to fix it?