title: Accessing external resources from a user-defined file path (Java)
body: <p>I've got a Java program which stores/recalls data from a load of .txt files located in my C drive. Currently, the file path for these is hard-coded into my Java program.</p>
  
  <p>I'm now looking to distribute this software and am wondering how can I make it so that the user can specify a file location during installation and then I can point my program to this location without having hard-coded it.</p>
  
  <p>This is pretty standard functionality but I've struggled to find how to achieve it. Can I use relative file paths, i.e. have the .exe for the java program in the same folder as the .txt files, or do I have to use something like Windows registry paths?</p>
  
  <p>Many thanks for your help.</p>
  
  <p>Cheers,
  Robin</p>