Method Stdio.File()->dup() Method dup File dup() Description This function returns a clone of Stdio.File with all variables copied from this file. Note All variables, even id, are copied. See also assign() Method dup Stdio.Fd dup() Description Duplicate the file. See also dup2()