title: Javascript to turn .txt file into set split by the word "END"
body: <p>I have 3 files the &quot;root&quot; is my github, so they're all online:</p>
  <ul>
  <li><code>Root/blah/blah/index.html</code></li>
  <li><code>Root/blah/blah/document.txt</code></li>
  <li><code>Root/blah/blah/script.js</code></li>
  </ul>
  <p>I want the .js to turn the contents of the .txt into a set of strings separated by the word &quot;END&quot; and print all the strings inside their own &lt;p&gt; &lt;/p&gt; in the simplest possible javascript.</p>
  <p>I feel like this is really basic but I looked forever for the simplest solution and all the answers are way too complicated or rely on a local text file being uploaded by the user.</p>
  <p>All my files are in the same directory.</p>
  <p>Sorry if my question is bad. It's my first.</p>
  <p>The .txt file could be an html file if that's easier.</p>
  <p>I would want the .txt file separated once it got to the word &quot;END&quot;
  example.txt:</p>
  <p>The quick</p>
  <p>END</p>
  <p>Brown Fox</p>
  <p>END</p>
  <p>And have that turn into</p>
  <pre class="lang-html prettyprint-override"><code>&lt;p&gt;The Quick&lt;/p&gt; &lt;p&gt;Brown Fox&lt;/p&gt;
  </code></pre>