How to transfer file from Intenal storage to USB stick

I have a program which is recording data on the intenal storage of the PLC, I want a program to periodically transfers files to the USB stick and delets the file from the PLC. can you please help me how I can do it.

Possible duplicate

Hello Ali,

you can use the AsUSB and FileIO libraries.

Sample here:
42d53bb1-11f3-4010-9baf-f84dcbd26986

You should be able to find it in the library samples of the AS:

Best regards,