import socket
import sys

s = socket.socket()
s.connect(("localhost",8000))
f=open ("demo.txt", "rb") 
l = f.read(1024)
while (l):
    s.send(l)
    l = f.read(1024)
s.close()


import socket
import sys

s = socket.socket()
s.connect(("localhost",8000))
f=open ("demo.txt", "rb") 
l = f.read(1024)
while (l):
    s.send(l)
    l = f.read(1024)
s.close()

