title: Enter data to KML file from c++ file
body: <p>I need to enter coordinates from a c++ file to a KML file to run with Google Earth, how would you go about doing this? The KML file is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;kml xmlns="http://www.opengis.net/kml/2.2" 
   xmlns:gx="http://www.google.com/kml/ext/2.2"
   xmlns:kml="http://www.opengis.net/kml/2.2"
  xmlns:atom="http://www.w3.org/2005/Atom"&gt;
  
  &lt;Document&gt;
  &lt;name&gt;Path.kml&lt;/name&gt;
  &lt;Style id="pathstyle"&gt;
      &lt;LineStyle&gt;
          &lt;color&gt;ff190cff&lt;/color&gt;
          &lt;width&gt;2&lt;/width&gt;
      &lt;/LineStyle&gt;
  &lt;/Style&gt;
  
  &lt;Placemark&gt;
      &lt;name&gt;Path&lt;/name&gt;
      &lt;description&gt;This is the path between the 2 points&lt;/description&gt;
      &lt;styleUrl&gt;#pathstyle&lt;/styleUrl&gt;
      &lt;LineString&gt;
          &lt;tessellate&gt;1&lt;/tessellate&gt;
          &lt;coordinates&gt;
              long1,lat1,0
              long2,lat2,0 
          &lt;/coordinates&gt;
      &lt;/LineString&gt;
  &lt;/Placemark&gt;
  </code></pre>
  
  <p>
      </p>
  
  <p>How would I enter the data from the c++ file when the latitudes and longitudes are entered into it? They are declared as double floats</p>