MC40N0: catching barcodes, write quantities, send to file in network folder

Hi.

I have a MC40N0 and I'm trying to catch barcodes, write quantities, and send those information to a file on a network folder , how can I do this?

Thanks