in reply to
Prepending to a file
No.
Files are just a stream of 1s and 0s recorded to disk. The only way to edit a file is to read the file into memory, edit it, and re-write it... or to remove the EOF marker and append more data to the end.
Comment on
Re: Prepending to a file
Replies are listed 'Best First'.
Re: Re: Prepending to a file
by
electronicMacks
(Beadle)
on Feb 06, 2001 at 07:55 UTC
That's what I suspected, but I was hoping the monks and saints here could find a loophole past that....
[reply]
Re: Re: Re: Prepending to a file
by
MeowChow
(Vicar)
on Feb 06, 2001 at 08:03 UTC
Sure, if you want to manipulate the FAT32/MFT, or inode tables...
Not very cross-platform though :)
[reply]
In Section
Seekers of Perl Wisdom