merging and copying files to anther directory
Posted on 2003-02-26
I need some immediate help with this:
suppose i would generate two files, file a and file b,c
file a's path is /usrs/extracts/work/a.txt
file b's path and name: /users/extracts/work/b.txt
I need to do these:
1. before i generate files in work dir, clean/delete all files in this dir. how to do that? using system( ) func?
2. Then i generated two files in this dir, a and b. how to merger them(append them) to anther dir /users/extracts/ready dir to have a final file:
/users/extracts/ready/d.txt? Any code there which would efficiently doing that(speed and correctness)? a.txt and b.txt, c.txt might be big and each has thousands of record with each record 80bytes.
thanks for help