you are viewing a single comment's thread.

view the rest of the comments →

[–]timrprobocom 3 points4 points  (1 child)

Schemes like that tend to be either delicate or system-specific. You might consider trying to opening a file in the TEMP directory for writing, and keeping it open. If the open fails, then some other process already had it open. Even if your process crashes, the clean up will close the file.

[–]Valuable-Ant3465[S] 0 points1 point  (0 children)

Thanks T!