title: How to copy a file to another location for later use (java)
body: <p>I am using this code </p>
  
  <pre><code>JFileChooser jf=new JFileChooser();
  File f=jf.getSelectedFile();
  name=f.getName();
  </code></pre>
  
  <p>I get the name of the file that I have chosen. In the project that I am doing I need to access this attached file again. I couldn't copy the original path. I want to know if I can copy the file to another location (the contents of the file- file being a .txt file) after it is attached, so that I can access the same for later use.</p>
  
  <p>Thank you.</p>