title: How to add resource file to JAR in IntelliJ
body: <p>I am using IntelliJ IDEA 14 and I want to add file outside of src to the JAR file. This is my current project structure.</p>
  <p>I want to add layout.txt and saveddata.txt to the JAR file executable. I've been googling on that for a while can't find the solution</p>
  <p>In case you need to see my code. This is how I am reading file</p>
  <pre><code>private Path layoutPath = Paths.get(&quot;resources/layout.txt&quot;);
  content = new String(Files.readAllBytes(layoutPath));
  </code></pre>
  <p>Here is my project structure</p>
  <p><img src="https://i.imgur.com/HFqaZwz.jpg" alt="Layout Structure" /></p>