File Handle Duplication - Help

Does anyone know how to duplicate a file handle so that any I/O going to
one file will also go to another. This used to be easy in DOS using a C
function called dup2. But there doesn't seem to be an equivalent in

Thanks for and help.

Michael Andrews