title: C++ how to split strings in a text file
body: <p>I have a text file, and want to extract it in two text files by splitting the strings in the file.</p>
  
  <p>The text file look like this: </p>
  
  <p>List.txt</p>
  
  <pre><code>A00.0 - Description
  A01 - Some other text here
  B07.2 - Lorem ipsum
  ..........................
  </code></pre>
  
  <p>I want to extract the part "A00.0" in a new text file, and the description part in another text file.</p>
  
  <p>Code.txt</p>
  
  <pre><code>A00.0
  A01
  B07.2
  </code></pre>
  
  <p>Desc.txt</p>
  
  <pre><code>Description
  Some other text here
  Lorem Ipsum
  </code></pre>
  
  <p>Can anyone help me?</p>