Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 perusing the Monastery: (10)
As of 2014-09-17 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (97 votes), past polls