BLE data transfer

Hello everyone. I'm working to a project with nRF52840. I'm developing the code in SDK in SES ide. The task i want to perform is transfer data from the memory of nRF52840 to an other device via BLE. Anyone can show some code example.
P.S. Is there some way to recive that data on Windows? Thankyou for your time