Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2016-10-28 11:57 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (383 votes). Check out past polls.