Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Answer: How do I pre-extend a file to a specified sizeby Anonymous Monk |
on Jan 05, 2001 at 06:17 UTC ( [id://49963]=note: print w/replies, xml ) | Need Help?? |
I tried the following code segment on both Win98 and VMS
and it failed to give the desired result:
The resulting file on Win98 is one byte long!! On VMS it is one block (minimum file size). It would appear that the seek doesn't extend the file past its current size (initially 0 bytes). Any suggestion appreciated.
In Section
Seekers of Perl Wisdom
|
|