title: How to delete part of a string in C++
body: <p>I would like to know if there is a way to delete part of a string in c++ and save the remaining part in a variable.</p>
  
  <p><code>com</code> is an input from the user, (example: <code>Write myfile</code>)</p>
  
  <p>I want to delete <code>Write</code> from this input to obtain only (<code>myfile</code>) to use as name for a file to be created. <code>Write</code> variable contains the string  (<code>Write</code>). <code>Com</code> is the input and <code>names</code> is the variable in which to save the name of the file.</p>
  
  <pre><code>write.names = com - write.Writevariable;
  </code></pre>