I have a dialog based application that has a menu attached to it, with an option to load a data file. Now if the user selects the menu item "load" a file is then loaded. Now if a user then selects the menu item "Load" again another file is loaded.
Now my question is about file handles. Now because the user loaded two different files is there two file handle's open? This might need a bit more explaining. Now, since the first file was never closed it is still open, and now that I opened another file it is open... I imagine over a period of time this is bad? Is this true? So how would I check before I let the user load another file that the first file needs to be closed?
I imagine that I would have to check the handle somehow. Do I even have to worry about this?