title: How to modify the attributes of a file with no extension in C#?
body: <p>This is my code</p>
  
  <pre><code>static string pat = "C:\\" + System.Environment.UserName + 
                "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\History";
  FileInfo hist = new FileInfo(pat);
  </code></pre>
  
  <p>Here <code>History</code> is a file, with no extension.
  All I want to do is this:</p>
  
  <pre><code>hist.IsReadOnly = true;
  </code></pre>
  
  <p>But <code>directorynotfoundexception</code> comes. Please help me, how do I access the <strong>file</strong>, it thinks that History is a directory! </p>