Hi all
I'm writing to a file and every now and then I need to clear it out. Many processes can write to the file, but only one will have write access at any given time (it's locked exclusive for the length of the write)
At certain times, I want to copy the file and then clear the lines from the original. Because it may have serveral active file handles, I dont want to delete it - just empty it
Any ideas on how to do this will be appreciated
In reply to Clearing out the file by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |