Frankthetech
Active member
I'm trying to write a file to the sd card that contains a listing of all the files on the sd card.
my question is can I use root.ls(LS_R) and send it to a file instead of it sending to the serial?
I can do it with the printDirectory example but seems I should be able to send the output from root.ls to the sd card.
Any ideas, I'm thinking I need to redirect the stream somehow...
my question is can I use root.ls(LS_R) and send it to a file instead of it sending to the serial?
I can do it with the printDirectory example but seems I should be able to send the output from root.ls to the sd card.
Any ideas, I'm thinking I need to redirect the stream somehow...