Thanks, unlink works fine. I'll benchmark both approaches for my own edification later. However I'm not sure how to make the best use of seek and readline given that the log files are of varying lengths (~100kB - 10MB) and I'm always after just the last line. It seems a bit too much work to open, read and close several hundred files.
In reply to Re^2: Efficient deletion of files / shell interaction
by madd
in thread Efficient deletion of files / shell interaction
by madd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |