using System;
using System.IO;
public class Program
{
public static void Main()
//File and File Info
var path = @"C:\somefile.png";
File.Copy(@"c:\temp\myfile.png", @"d:\temp\myfile.png", true);
File.Delete(path);
if (File.Exists(path))
//
}
var content = File.ReadAllText(path);
var fileInfo = new FileInfo(path);
fileInfo.CopyTo("...");
Console.WriteLine(path);