New method for o_stream for file copying