I read an xml file and get line to compare it with another value :
xmlLine = fgets(fid);
which gives :
xmlLine =
<a="true" value="toto">
I need , when getting the xmlLine to remove the spaces (here there are 6spaces before the begining)
Any idea?
strtrimwill do the trick:The function removes extra white space from the beginning and end of a string.