title: Converting from string to char* on Arduino
body: <p>The method sprintf() is not valid on Arduino. How else can I convert a string to char*?</p>
  
  <pre><code> if(triggerNumber == 4)
   { currenttrack = 5;
   }
    sprintf(trackName, "track%03d.mp3", currenttrack);
  
    playMP3(trackName); //Go play XX.mp3
  </code></pre>