Transfer trajectories from robot to pc

Hello everyone,
Which is the easiest way to transfer trajectories from the robot to pc, displaying a script of them or Just a TXT file?

Thanks