title: How to check if a file is readable?
body: <p>I'm writing Java 6 application and I have to check if a file is readable. However, on Windows <code>canRead()</code> always returns <code>true</code>. So I see that probably, the only solution could be some native solution based on WINAPI and written in JNA/JNI. </p>
  
  <p>But, there is another problem, because it's difficult to find a simple function in WINAPI which would return information about access to a file. I found <code>GetNamedSecurityInfo</code> or <code>GetSecurityInfo</code> but I'm not an advanced WINAPI programmer and they are too complicated for me in connection with JNA/JNI. Any ideas how to deal with this problem? </p>