Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Write to file

by Trix606 (Monk)
on Oct 17, 2005 at 18:56 UTC ( #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.


Comment on Re: Write to file
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
Node Status?
node history
Node Type: note [id://500791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-07-26 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls