title: How to use os.Open when no such file return err is nil
body: <pre class="lang-golang prettyprint-override"><code>package main
  
  import (
      "fmt"
      "os"
  )
  
  func main() {
      f := "D:\\cron"
      fmt.Println(os.Stat(f))
      fmt.Println(os.Open(f))
  
      f = "D:\\con"
      fmt.Println(os.Stat(f))
      fmt.Println(os.Open(f))
  }
  
  result：
  &lt;nil&gt; CreateFile D:\cron: The system cannot find the file specified.
  &lt;nil&gt; open D:\cron: The system cannot find the file specified.
  &lt;nil&gt; CreateFile D:\con: The parameter is incorrect.
  &amp;{0xc000086a00} &lt;nil&gt;
  </code></pre>
  
  <p>I think when the file doesn't exist,os.Open should return err != nil<br>
  But I wonder why "D:\con" returns err == nil</p>