Are you aware that you can use tar? It already has the ability to only append newer files to the archive. It won't be the same file format, but it might be able to help you out.
Anyway, for your coding problem, it looks like you just need to chomp your lines as you read them, otherwise the end-of-line at the end of the filename will cause you a mismatch: After all "foo" doesn't equal "foo\n", which is what it looks like your program is doing.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Append new files only.
by roboticus
in thread Append new files only.
by c4jjm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |