title: no instance of overloaded function "getline" matches argument list
body: <p>the fstream and string inlcusions are in the .h file. I've read multiple people's problems but can't seem to apply it to my own. I've tried putting in infile.getfile(dataFile, line)) to no avail. The dataFile is just a list of employees. I still keep getting the same no instance of overloaded function with getfile(dataFile, line)</p>
  
  <pre><code>{
  
      ifstream infile;
      infile.open(dataFile);
      if(!infile.good())
      {
          cout &lt;&lt; "File is not open";
      }
      else
      {
          int i = 0;
          while(!infile.good())
          {
              string line;
              while (getline(dataFile, line))
              {
                  if (line[0] == 'h' ) 
                  {
                      HospitalEmployee newEmp;
                  }   
              }
          }
      }
  }
  </code></pre>