title: How convert type from const char * to char *
body: <p>I'm trying create simple application in C++. This application has to read from file and displays data. I've written function:</p>
  
  <pre><code>std::vector &lt;AndroidApplication&gt; AndroidApplication::getAllApp(){
      std::vector&lt;AndroidApplication&gt; allApp;
      std::fstream f;
  
      f.open("freeApps.txt");
      std::string line;
      if(f.is_open()){
          while(getline(f, line)) {
              std::string myLine = "";
              char * line2 = line.c_str();
              myLine = strtok(line2,"\t");
  
              AndroidApplication * tmpApp = new AndroidApplication(myLine[1], myLine[2], myLine[4]);
              tmpApp-&gt;Developer = myLine[0];
              tmpApp-&gt;Pop = myLine[3];
              tmpApp-&gt;Type = myLine[5];
              allApp-&gt;pushBack(tmpApp);
          }
      }
      return allApp;
  }
  </code></pre>
  
  <p>It throws me an error in line: </p>
  
  <pre><code>myLine = strtok(line2,"\t");
  </code></pre>
  
  <p>An error:</p>
  
  <blockquote>
    <p>cannot convert from 'const char *' to 'char *'</p>
  </blockquote>
  
  <p>Could you tell me how can I deal with it?</p>