i need to send a file from one computer to another by a cable (9-pin or 25-pin)

i heard of the open com statement in qbasic but i dont know how it works

please help