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.

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....
      Sure, if you want to manipulate the FAT32/MFT, or inode tables...

      Not very cross-platform though :)