hi,,
i am trying to read and write in pen drive using testusbhost.ino file from examples of usbhostshield 2.0 library on arduino mega adk. The library can be found on this page
https://www.circuitsathome.com/mcu/mass-storage-support-for-usb-host-library-2-0-released/comment-page-1#comment-24956
Create new file and read command are working great but theres some problem in the write command. if i unplug the pendrive from arduino after writing something to a file and plug it into my laptop, i do not see anything written in the file. But reading from the file during the execution of the code itself after writing something prints the right result. dont know why this is happening .
it would be great if someone can help.
Can't help much without seeing your code. My guess is that you may be missing some kind of finalise or close command after writing the file. Check the documentation again, and look at examples, or be brave and post some of your code, and by some I mean ALL.
yeah,, i got it. you were right about the thing that i was missing. thanks for the help.