Conversion of String to Char

parnal:
Added a null character to the command in the file stored in SD card.(I have added the .txt file on the sd card for you to see)

The code is the same only earlier print statement was commented out because you were interested in the value of buffer. BUT its the SAME code.

That 0 is NOT a NULL character.

That 0 is a band-aid because your code is wrong.