Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Example for EOF

by blazar (Canon)
on Nov 15, 2005 at 11:19 UTC ( #508548=note: print w/replies, xml ) Need Help??


in reply to Re: Example for EOF
in thread Example for EOF

my aim is: when i reach the last line of the file.. i will add some text to that line and finish the program.

Oh "XY", then: you really want to ask X, but you think you need Y to do that, and ask about Y.

This sounds like: "I want to append to the end of file". If so, then just either open in >> mode if you only want to append, or +> if you also want to read it before writing something in it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2016-09-28 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (531 votes). Check out past polls.