title: Difference between SerialPort.Write() and SerialPort.WriteLine()?
body: <p>I looked at the <a href="http://msdn.microsoft.com/en-us/library/y2sxhat8.aspx" rel="nofollow">SerialPort.Write()</a> and <a href="http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.writeline.aspx" rel="nofollow">SerialPort.WriteLine()</a> methods on msdn and tried them on a simple code such as the ones below but they seem very similar to me. </p>
  
  <p>Can someone please explain what the main difference is in simple terms?</p>
  
  <pre><code>if (sendtoprint == true)
              {
                  for (int i = 0; i &lt; gcode.Count(); i++)
                  {
                      port.Write(gcode[i]);
                  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if (sendtoprint == true)
              {
                  for (int i = 0; i &lt; gcode.Count(); i++)
                  {
                      port.WriteLine(gcode[i]);
                  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if (sendtoprint == true)
              {
                  for (int i = 0; i &lt; gcode.Count(); i++)
                  {
                      port.Write(gcode[i]+"\r\n");
                  }
  </code></pre>