I have been reading Majenko's blog about the evils of Arduino strings and understand that one should basically never use them and favor C strings whenever possible. As such, I'm rewriting sections of code, but I don't know how I should handle something like the code below:void class::GetLine(int skip){  //...[open file and set as active file]     char filechar;  for (int i=0; i < skip; i++)  {//skip lines    while ((filechar = ActiveFile.read()) > 0 && filechar != '\n')    {    //do nothing while lines skipped      }    //ActiveFile.read    //read sd to \n    Sk->Cstep++;  }  String data=;  while ((filechar = ActiveFile.read()) > 0 && filechar != '\n')  {    data += filechar;    }//...cast String into C string -> atol() to get ints}Here I'm reading from an SD file using Greiman's SD fat library. I know that the majority of lines read will have the format [int]','[int]'\r''\n' however I need to be able to handle a line that does not have that format as well (if only to discard it and read the next one)Is there something that I should read the values into other than the Arduino String type in order to be nicer to my microprocessor?
Get line from a file on Arduino
strings;parsing;file;arduino