The most obvious approach for smaller amounts of data is over the serial port.

If you're not using picbasic a code example is of little use.

Most serial terminal programs can capture to file.
If you wanted something more reliable you could use checksums.