Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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.


Comment on Re^2: Example for EOF
Select or Download Code

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 having an uproarious good time at the Monastery: (9)
As of 2014-08-20 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (105 votes), past polls