- 论坛徽章:
- 0
|
求助!C\C++中移动和复制文件的函数分别是什么?
The rename function renames the file or directory specified by oldname to the name given by newname. The old name must be the path of an existing file or directory. The new name must not be the name of an existing file or directory. You can use rename to move a file from one directory or device to another by giving a different path in the newname argument. However, you cannot use rename to move a directory. Directories can be renamed, but not moved.
这是msdn对rename()的注释。
谢谢楼上各位。 |
|