I have some data in a .txt file like so:
Michael|30
John|23
Eric|34
Dave|20
I want to select a random line from that file, then delete the entire line from that file and write it to another.
I have tried different ways but none of them seem to work properly.
So any ideas how to actually do it?