Hi,
I want to read in the entire contents of an mbox file and then clear it immediately after. Considering this is an mbox file, I have to lock it in case new mail comes in. I can't work out the most efficient way to clear the file after reading, without closing it and losing the lock, then opening it again with '>'. If mail arrives in while doing that I've lost it.
Any suggestions?
In reply to Read entire file then clear while flocking by citycrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |