go ahead... be a heretic | |
PerlMonks |
Re: Edit huge fileby davido (Cardinal) |
on Jun 18, 2013 at 22:39 UTC ( [id://1039684]=note: print w/replies, xml ) | Need Help?? |
One point that needs to be made; while you *can* truncate at the end a file, you cannot just remove a few lines or bytes from the beginning of a file. To do that, the file has to be re-written. So while you could cheaply remove that line near the end, you will not remove the line at the beginning without going through the process of re-writing the entire file. Dave
In Section
Seekers of Perl Wisdom
|
|