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

C# program to move 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

Recent Posts

error: Alert: Content is protected!!