CSV file saving into USB Pendrive through AsUSB and FileIO

Hello team,
I am facing an issue in using of USB pendrive. I want to generate CSV excel file directly into the attached pendrive.
I have given File path as " /bd0 ", and when I use the sequence for FileIO, it executes completely without any error but there are no files saved into the mentioned path. what can be the issue for that ?
It will be helpful to get response as soon as possible.

Thank you

Hello,

for creating files it is not just the filepath which is required, also the filedevice is important.
Using a usb pendrive, you have to link the pendrive to a filedevice.
You can find an example on how to use the AsUSB library here: B&R Online Help

The example is just for reading but I’m sure you can adapt it for writing as well. The important part is the usb handling.

BR Fabian

There is also a good example, which can also be directly imported to your project, available in the B&R GitHub.

Thanks for the solution Tommi, Will check further for better implementation

will have a look into it. Thanks Fabian