Reading a text file line by line, using char* and not string c++
<p>i have the next code:</p>

<pre><code>  std::string line;
  std::ifstream myfile ("text.txt");
  if (myfile.is_open())
  {
    while ( myfile.good() )
    {
      getline (myfile,line);
      std::cout &lt;&lt; line &lt;&lt; std::endl;
    }
    myfile.close();
  }
</code></pre>

<p>is there a way to do it, and use char* instead of string?</p>
