title: FileInfo.IsReadOnly versus FileAttributes.ReadOnly
body: <p>Is there any difference between these two ways of checking whether a file is read-only?</p>
  
  <pre><code>Dim fi As New FileInfo("myfile.txt")
  
  ' getting it from FileInfo
  Dim ro As Boolean = fi.IsReadOnly
  ' getting it from the attributes
  Dim ro As Boolean = fi.Attributes.HasFlag(FileAttributes.ReadOnly)
  </code></pre>
  
  <p>If not why are there two different possibilities?</p>