- $exception {"the process cannot access the file because it is being used by another process."} system.io.ioexception in c sharp program how i solved

  • Thread starter Thread starter Priyadarshani Nikalje
  • Start date Start date
P

Priyadarshani Nikalje

Guest
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text;
using System.IO;


namespace File_Demo_3
{
class Program
{
public static string addtext;
static void Main(string[] args)
{
string Path = @"C:\Users\Priyadarshani_2\Desktop\Customer\Program_2\Priya.txt";
string Path2 = @"C:\Users\Priyadarshani_2\Desktop\Customer\Program_2\Priya.txt";

File.Copy(Path, Path2, true);

Console.ReadLine();
}

}
}

Continue reading...
 
Back
Top