in reply to
Resize a File, without rewrite it!
Truncate takes a parameter, which is the new filesize. This will, on at least some operating systems, shrink the file. (This isn't 100% cross-platform, but should work most places)
Comment on
Re: Resize a File, without rewrite it!
In Section
Seekers of Perl Wisdom