title: Getting a compiler error using Visual Studio, 2019
body: <p>A segment of code shown below gives a compiler error when 3 arguments are provided for the function getline. getline(a,b); works, getline(a,b,c); does not work. Yet both of these forms are valid per C++
  definitions. In the later case, parameter c would be the character when the function would stop reading, i.e. &quot;\n&quot;. Not sure why this is.</p>
  <pre><code>input_file.open(&quot;Future Appointment Data File&quot;, ios::in);
  //Print Header
  cout &lt;&lt; &quot;Name&quot; &lt;&lt; &quot;                &quot; &lt;&lt; &quot;Date&quot; &lt;&lt; &quot;       &quot; &lt;&lt; &quot;Purpose&quot; &lt;&lt; &quot;                       &quot; 
  &lt;&lt; &quot;Time&quot; &lt;&lt; &quot;    &quot; &lt;&lt; &quot;Confirmation&quot; &lt;&lt; &quot;  &quot; &lt;&lt; &quot;Comment&quot; &lt;&lt; &quot;\n&quot;;
  do
    {
       input_file.getline(InData, 120);
       cout &lt;&lt; InData;
       cout &lt;&lt; &quot;\n&quot;;
    } while (!input_file.eof());
  </code></pre>