title: How to use FileUtils IO correctly?
body: <p>I tried to use method (credits to <a href="https://stackoverflow.com/questions/921262/how-to-download-and-save-a-file-from-internet-using-java/7156178#7156178">Shenyuan Lu</a> ):</p>
  
  <p><code>org.apache.commons.io.FileUtils.copyURLToFile(URL, File)</code></p>
  
  <p>Precisely:</p>
  
  <p><code>org.apache.commons.io.FileUtils.copyURLToFile(driver.getCurrentUrl(), "C:\\Users\\myDocs\\myfolder\myFile.pdf");</code></p>
  
  <p>However,<code>Eclipse</code> is underlining the <code>copyURLToFile</code> and suggesting to use <code>copyFile</code>. When I switch to <code>copyFile</code>, it suggests to use <code>copyURLToFile</code> again???</p>