Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://500791]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-04-20 13:40 GMT
Find Nodes?
    Voting Booth?