When is a char array not a char array....?

stringProblem.ino (1.0 KB)

This file shows the problem. The test.cfg file consists of a single line of text

PWMTopic:occ/shed/po\n

I'm using a Teensy 4.1 board with a built in SD card, hence the reference to BUILTIN_SDCARD. Change this as required for whatever you use; I'm sure the teensy isn't responsible for the problem.

Thanks again, guys.