title: How to read a single line from a text file, split it into 2 lines, and output the 2 lines to another text file?
body: <p>I want a batch code which would do these:</p>
  
  <ol>
  <li><p>Load all the content of a text file into a variable. The content is just 1 line.</p></li>
  <li><p>Then break that 1 line into 2 parts. </p></li>
  <li><p>Put those 2 parts as new lines into another text file.</p></li>
  </ol>
  
  <p>Let's say my contents are:</p>
  
  <pre><code>Bill Gates was born in 1955. &lt;--When was Bill Gates born?--&gt;
  </code></pre>
  
  <p>So I want a batch file which will take the whole sentence above, into a variable.</p>
  
  <p>Then break it into 2 parts like</p>
  
  <ol>
  <li><p><code>Bill Gates was born in 1955.</code></p></li>
  <li><p><code>&lt;--When was Bill Gates born?--&gt;</code></p></li>
  </ol>
  
  <p>Then import those 2 lines to another text file <code>result.txt</code> and upon opening, there should be those 2 lines in this manner</p>
  
  <pre><code>Bill Gates was born in 1955.
  &lt;--When was Bill Gates born?--&gt;
  </code></pre>
  
  <p>Syntax of a sentence:</p>
  
  <pre><code>xx yy &lt;--xxy yyz --&gt;
  </code></pre>
  
  <p>New lines in <code>result.txt</code>:</p>
  
  <pre><code>xx yy
  &lt;--xxy yyz --&gt;
  </code></pre>
  
  <p>Please note that the sentences can change. I just gave an example. Sentences must be broken into 2 parts, part 1 before <code>&lt;--</code> and part 2 <code>&lt;--...--&gt;</code> where <code>...</code> is the data.</p>