Hi all - I have some code which opens multiple files with extentions such as .1 .2 .3 etc.. I want to be able to delete these files at the end of code execution to 'clean up' for the user.
I have a TK interface with underlying TK/TCL code. However I am getting a permission denied on deleting the files until the TK widget is closed (so in fact the program is keeping these files open despite the I/O channel being closed). I am actually closing the I/O channel for each file but am wondering if its still keeping open the .1 .2 .3 extentions. I havent yet figured out a way of closing these kinds of files..
Any ideas?
I have a TK interface with underlying TK/TCL code. However I am getting a permission denied on deleting the files until the TK widget is closed (so in fact the program is keeping these files open despite the I/O channel being closed). I am actually closing the I/O channel for each file but am wondering if its still keeping open the .1 .2 .3 extentions. I havent yet figured out a way of closing these kinds of files..
Any ideas?