Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by dbuckhal (Hermit)
on Dec 16, 2012 at 04:45 UTC ( #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
Node Status?
node history
Node Type: note [id://1009045]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2019-12-14 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?