title: getting a "^M" after each line in unix from a java created file
body: <p>I have a Java program that creates a file and prints a bunch of data using this statement:</p>
  
  <pre><code>out.write(data+"|"+data2+"\r\n");
  </code></pre>
  
  <p>When I view this file in vim in Unix I see a ^M after each line.  What is it? What is causing this? How can I get rid of it?</p>