title: Selenium using Java.io FileUtils.copyFile to dynamic destination file name
body: <p>take an screenshot and copy that file in my local folder using java io (Webdriver with Java)</p>
  
  <pre><code>File screenshot = ((TakesScreenshot) driver)
              .getScreenshotAs(OutputType.FILE);
      FileUtils.copyFile(screenshot, new File("d:\\pic\\report.jpg"));
  </code></pre>
  
  <p>i call this method more than one time, so in this situation i dont want to repeat the file name as "report.jpg" so please provide an suggestion how can i change that file name dynamically</p>
  
  <p>like
  report1
  report2 etc.,</p>