Johnwasser has nailed it; The '\n' is being included for some reason in the string. If I change
while (file.available())
{
tempStr[ptr] = file.read();
if (tempStr[ptr] == '\n')
{
tempStr[ptr] = '\0';
parseString();
ptr = 0;
}
else
ptr++;
}
to
while (file.available())
{
tempStr[ptr] = file.read();
if (tempStr[ptr] == '\n')
{
tempStr[--ptr] = '\0';
parseString();
ptr = 0;
}
else
ptr++;
}
All is well. Doesn't quite make sense to me, but I'll take it.
Thanks again guys.