how would a simple c++ console program be writting to copy a file from one location to another and overwriting a file with its same name when it copies?