Using socket programming to get cat files from server.