LI NGOK LAM said:
> Is there any methods or documents I can refer to learn how to write a file
> at any desire position with any length without to write the whole again ?
> I mean, I dont want to write to a new file, kill the old file, rename the
> new file, or read the old file, modify it and rewrite the old file etc...
>
> for example, for a mp3 file, I can modify the tags by its header location.
> So I just want to overwrite some bytes to the head of the file, then the
> rest are just remain the same....
>
> Any suggestion are very apperciate =)
> Thanks in advice

You want seek(), and possibly tell().

perldoc -f seek

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to