What kind of thing are you thinking of? It seems to me that you just
need to open one file read-only, the other for append, and read from
one while writing to the other. Read into a buffer rather than byte-by-
byte to avoid too many calls being made, but it seems pretty
straightforward apart from that.