title: java.io.IOException: The process cannot access the file because another process has locked a portion - when using IOUtils.copyLarge() in Windows
body: <p>The issue is stemming from the specificied line of code in this try block:</p>
  
  <pre><code>try {
              fInputStream = new FileInputStream(path);
  #thisLine   byteCount += IOUtils.copyLarge(fInputStream, fOutputStream);
              fileCount++;
      }
  </code></pre>
  
  <p>The stack-trace looks like this:</p>
  
  <pre><code>java.io.IOException: The process cannot access the file because another 
  process has locked a portion 
   of the file 
          at java.io.FileInputStream.readBytes(Native Method) 
          at java.io.FileInputStream.read(FileInputStream.java:233) 
          at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1719) 
          at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696) 
  </code></pre>
  
  <p>This seems to be a Windows-specific issue. Is there some File I/O best practice(s) specific to Windows that I might be missing? </p>