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.
commands.txt (15 Bytes)