Logic Machine Forum
Read/Write file to USB - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Read/Write file to USB (/showthread.php?tid=705)



Read/Write file to USB - Rodriguez - 28.03.2017

Hi, could you tell me how I can read and write a USB file from the Script?
And where should this be?
Thank you. Big Grin


RE: Read/Write file to USB - edgars - 29.03.2017

Hi Rodriguez,
please follow this example: http://openrb.com/example-readwrite-file-to-lm2-connected-usb-flash/


RE: Read/Write file to USB - Shalltear - 29.03.2017

Hi Edgar, I have been working with that example with the logic machine 4, but I seem to error when mounting the usb, I think it is not taking it. I get the following error:


LogicMachine kern.err kernel: [88019.893681] FAT-fs (sdc): Directory bread (block 8199) failed