Leaving aside whether you should have opened the file in appned mode or not and to answer your question ... unlink or rename ... it depends 8^) if you want the file to be available for something after you have completed your processing then rename. If you really want to delete the file then unlink. As other have mentioned in some detail ... opening the file in write moide wil lclear any previous contents and unless you are opening and closing the file multiple times in the script appending doesn't really gain you anything
Hope this helps!
In reply to Re: Unlink or rename?
by MishaMoose
in thread Unlink or rename?
by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |