[Solved] Message if Path dont exists in C#?


if (!File.Exist(path to file))
 {
   MessageBox.Show("File Not Found");
 }
 else
  //process code here

also need to add the using System.IO namespace

solved Message if Path dont exists in C#?