Read/Write U-Disk using mbed codes

If I drag and drop some files into mbed U-Disk from my pc, such as a file named myconfig.txt, How can I read/write this file in my mbed codes?

Hello,

I do not know what is U-disk and what a board you have, but if you mean same onboard memory what you use for binary upload, then it is possible ONLY with Lpc1768. Lpc1768 has conected the Spi to the memory, rest boards not.

BR, Jan

Yes. I mean that memory what I use for binary upload(U-disk).

So, if you have a different target than LPC1768, then it is not possible. for that you need an SD card or something like that.

BR, Jan