Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: how to read file and create duplicate file for orginal file

by dbuckhal (Chaplain)
on Dec 16, 2012 at 04:45 UTC ( [id://1009045]=note: print w/replies, xml ) Need Help??


in reply to how to read file and create duplicate file for orginal file

Some psuedocode that helped me write a little program to do it:


1. choose files for copying (read a directory, for example)
2. loop though those existing files
3. open one of those files for reading
4. open a target file for writing
5. while files exist for reading
6.....print to target
7. close directory

or....

use built-in "cp" command from your OS.

Hope this helps!

  • Comment on Re: how to read file and create duplicate file for orginal file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found