title: Removing ^M From File Generated on Linux
body: <p>Alright, I'm attempting to remove these pesky ^M characters that pop up when I compile and run my program on Linux.</p>
  
  <p>I've attempted running </p>
  
  <pre><code>dos2unix filename
  </code></pre>
  
  <p>on the file, and the ^M's remain. I've also made sure that anytime I am opening the file, I am opening with </p>
  
  <pre><code>ios::binary
  </code></pre>
  
  <p>Is there some way to remove the M's? Even a system call would work that I could call within my code would be fine as well, something like</p>
  
  <pre><code>std::system("Remove M's Command");
  </code></pre>
  
  <p>Any feedback would be most appreciated.</p>
  
  <p>Thanks.</p>