Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Prepending to a file

by Adam (Vicar)
on Feb 06, 2001 at 07:45 UTC ( [id://56601]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://56601]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found