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

Re: Both read and write

by Errto (Vicar)
on Jan 08, 2008 at 20:03 UTC ( #661164=note: print w/ replies, xml ) Need Help??


in reply to Both read and write

You can't read text you've just written because the current position of the filehandle will be after the end of the text you've just written, so if you want to read it you have to seek back to the place you want to read from. At least, that's what I found in a quick test - I don't have much experience with this.


Comment on Re: Both read and write
Re^2: Both read and write
by rpike (Scribe) on Jan 08, 2008 at 20:31 UTC
    Laziness, time to try it out, and low confidence (not in that particular order) caused me to post this then. I was thinking I might need to use seek or navigate back to the start of the file (possibly). Thanks for the info, now I'll definitely give it a try when I get back to it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-01 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (386 votes), past polls