-
Open file directory in terminal and make sure you have a file called
client.txt
with the data to be sent to server. -
run
gcc server.c -o server
and./server
to Start the Server -
Similarly, start the client using the command
gcc client.c -o client
and./client
-
You will see that
server.txt
has now been generated with the data fetched from client side.