System::IO::FileInfo::CopyTo method
Contents
[
Hide
]FileInfo::CopyTo(const String&) method
Copies the file represented by the current object to the specified location. If the destination file already exists, the copying fails.
FileInfoPtr System::IO::FileInfo::CopyTo(const String &destFileName)
Parameter | Type | Description |
---|---|---|
destFileName | const String& | The destination file name |
ReturnValue
A FileInfo object that represents the copy
See Also
- Typedef FileInfoPtr
- Class String
- Class FileInfo
- Namespace System::IO
- Library Aspose.Font for C++
FileInfo::CopyTo(const String&, bool) method
Copies the file represented by the current object to the specified location. A parameter specifies if existing destination file should be overwritten.
FileInfoPtr System::IO::FileInfo::CopyTo(const String &destFileName, bool overwrite)
Parameter | Type | Description |
---|---|---|
destFileName | const String& | The destination file name |
overwrite | bool | True if the existing destination file should be overwritten, false if copying should fail if the destination file already exists |
ReturnValue
A FileInfo object that represents the copy
See Also
- Typedef FileInfoPtr
- Class String
- Class FileInfo
- Namespace System::IO
- Library Aspose.Font for C++