title: With respect to ReadFile() WinAPI, GetLastError is throwing the error 183. What Does "ERROR_ALREADY_EXISTS" mean in this context?
body: <p>I am calling ReadFile() WinAPI to copy the file contents to a char array, inside my VC++ code. Have placed GetLastError() immediately after ReadFile().  </p>
  
  <pre><code>for( read some n no: of files)
  {
  FileRead(fp,destCharArray,ByesToRead,NoOfBytesRead,NULL);
  int ret = GetLastError();
  }
  </code></pre>
  
  <hr>
  
  <p>GetLastError() is returning 183 only when 1st file is read. For all
   other file reads its returning 183. But eventhough 183 is returned the
   contents of file are copied to charArray. And the problem is that the
   file read does not happen for some 28th file (here too return status
  is 183).  Irrespective of successful or unsuccessful file read, 183 is
   returned!</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx</a></p>
  
  <p>error code 183 means "<strong>ERROR_ALREADY_EXISTS</strong>".</p>
  
  <p>What does the above error status signify in ReadFile() context.? </p>
  
  <p>Can anyone kindly help me in figuring out why?</p>