Probably a nother Nube question, but First time using sprint(), and now I want to create a new void and this requires the creation of a variable to pass the "filename" to the new void routine. I think I'm mixing oil and water. A little help please. Thanks
SampleName="Test"
String fName= SampleName + ".txt";
sprintf(MyFileN, fName); //Creates Savedata filename for SD
Error: cannot convert 'String' to 'const char*' for argument '2' to 'int sprintf(char*, const char*, ...)'
or
sprintf(MyFileN, SampleName + ".txt"); //Creates Savedata filename
Error :cannot convert 'StringSumHelper' to 'const char*' for argument '2' to 'int sprintf(char*, const char*, ...)'