Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Write to file

by Trix606 (Monk)
on Oct 17, 2005 at 18:56 UTC ( [id://500791]=note: print w/replies, xml ) Need Help??


in reply to Write to file

It sounds like seek or sysseek is what you are looking for.

Replies are listed 'Best First'.
Re^2: Write to file
by jriggs420 (Sexton) on Oct 17, 2005 at 18:58 UTC
    I thought seek was only to find the beginning and/or end of a file?

      seek will allow you to position the file pointer to any offset within the file. The problem is that files are ordered sequences of octets, not lines. Unless you're dealing with fixed line lengths you're more than likely going to overwrite something if you try and do things in place yourself. You want to use the module mentioned in the FAQ I've referenced.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-23 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found