Try to fix to compile on Arduino IDE 1.8.17, which grumbles about char* pointers to ROM.
Also make datStr an array buffer rather than a pointer; note that data inside pointed-to string was being changed.
This was desk checked code changes; this was not tested, as I don't have an SD card connected.
However, it does allow me to compile the programme from https://www.instructables.com/Music-Player-Using-Arduino/
Try to fix to compile on Arduino IDE 1.8.17, which grumbles about char* pointers to ROM. Also make datStr an array buffer rather than a pointer; note that data inside pointed-to string was being changed. This was desk checked code changes; this was not tested, as I don't have an SD card connected. However, it does allow me to compile the programme from https://www.instructables.com/Music-Player-Using-Arduino/