Transfer File Content Using Netcat

Sender: 192.168.1.10
Receiver: 192.168.1.20

We have a file output.txt and we wanna transfer that using netcat.

In Sender Terminal Type:
$ nc -vv 192.168.1.20 8000 < output.txt

In Receiver Terminal Type:
$ nc -lvvp 8000 > output.txt