C# program to move a file from one location to another location

Program

using System;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
           
            File.Move("source/ABC.TXT", "dest/XYZ.TXT");
            Console.WriteLine("File moved successfully");

        }
    }
}

Output

File moved successfully

Leave a Comment

error: Alert: Content is protected!!