title: How to check folder have write permission or not in c++
body: <p>I would like to write a file inside a "d:\test\" unfortunately I don't have a write permission for that folder. 
  How to check whether that folder have a write permission or not. </p>
  
  <p>NOTE: fopen is helpful,But that's creates a new file. I don't want to create exra file.</p>
  
  <p>I am also seen CreateFile(), don't know how to use that for this case. </p>