Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: opening file for editing

by Anonymous Monk
on Oct 09, 2011 at 11:45 UTC ( #930452=note: print w/ replies, xml ) Need Help??


in reply to Re^2: opening file for editing
in thread opening file for editing

ok i got it, i just wanted to know any way i can open already existing file change it on the fly


Comment on Re^3: opening file for editing
Replies are listed 'Best First'.
Re^4: opening file for editing
by armstd (Friar) on Oct 09, 2011 at 11:56 UTC

    No, that's not how editors work. Read from original, write to a new temp file. When the writing is complete and successful(!), rename the temp file to the old name. Typically you don't want to wipe out the original until you are sure you have a good replacement for it.

    --Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-08-29 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (343 votes), past polls