title: FileCopyUtils Springframework
body: <p>I want to copy a file using spring FileCopyUtils.
  this is the first time I used
  I followed a tutorial and I get this exception</p>
  
  <pre><code>package com.sctrcd.multidsdemo.integration.repositories.foo;
  
  import java.io.File;
  import java.io.IOException;
  
  import org.springframework.util.FileCopyUtils;
  
  public class CopyTest {
  
      public static void main(String[] args) throws InterruptedException,
              IOException {
  
          File source = new File("‪C:\\Users\\Momo Kh\\Desktop\\CV.pdf");
          File dest = new File("C:\\Users\\Momo Kh\\Desktop\\Test\\CV.pdf");
          FileCopyUtils.copy(source, dest);
  
      }
  
  }
  </code></pre>
  
  <p>And i have this Exception</p>
  
  <pre><code>Exception in thread "main" java.io.FileNotFoundException: ‪C:\Users\Momo Kh\Desktop\CV.pdf (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:146)
      at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:63)
      at com.sctrcd.multidsdemo.integration.repositories.foo.CopyTest.main(CopyTest.java:15)
  </code></pre>