Copy the file C #

String pLocalFilePath = "" ; // to copy the file path 
String pSaveFilePath = "" ; // the specified storage path 
IF (the File.Exists (pLocalFilePath)) // must determine whether to copy the file exists 
{ 
File.Copy (pLocalFilePath , pSaveFilePath, to true ); // three parameters are the source file path, storage path, storage path if the same file is replaced 
}

 

Guess you like

Origin www.cnblogs.com/yinmu/p/11441708.html