79089970

Date: 2024-10-15 12:43:51
Score: 2
Natty:
Report link

string destinationPath = "C:\Folder1 "; //note the space on the end string destinationFileNameAndPath = Path.Combine(destinationPath, "file.txt");

if (!Directory.Exists(destinationPath)) Directory.CreateDirectory(destinationPath);

File.Move(sourceFileNameAndPath, destinationFileNameAndPath);

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Seshank