title: How to get process ID and deal with it using c#?
body: <p>If one file is used by other process and you are trying to manipulate with it...it gives an error:-</p>
  
  <blockquote>
    <p>The process cannot access the file
    'abc.txt' because it is being used by
    another process.</p>
  </blockquote>
  
  <p>In C#, How can i come to know that 'abc.txt' file is used by the process Name "XYZ.exe" (or any other process)?</p>