title: Catch "Cannot Find File"
body: <p>I have been searching for a while, but I cannot find the exception in PowerShell that would catch a "Cannot find file" error.</p>
  
  <p>I would also like to have this loop until the user types in the correct file name to get.</p>
  
  <pre><code># Ask user for file to read from
  Try {
      $readFile = Read-Host "Name of file to read from: "
      $ips = GC $env:USERPROFILE\Desktop\$readFile.txt
  }
  Catch {
  
  }
  </code></pre>