Oct-01-2017, 02:41 PM
Suppose I have a file I'm reading from and I want to keep it open for the life of the application, until the users quits. Using Python under Windows, is it possible?
Essentially what i want to do is what any word processor does, once a file is open in the word processor, it's locked as long as the word processor is open, and if you attempt to delete/move it, the OS will generate an error usually along the lines of "This file cannot be removed, it's being used by (program name here)"
Essentially what i want to do is what any word processor does, once a file is open in the word processor, it's locked as long as the word processor is open, and if you attempt to delete/move it, the OS will generate an error usually along the lines of "This file cannot be removed, it's being used by (program name here)"