I have created a client/server program.In client side it will first read a file and send the data to the server side.Then server send the response to the client.In the data file there is two line which indicate this message is from this client also when server side send a response it will copy that line from the request and add these two line with the response and send.so that client side reconize that this response is for me otherwise discard the message.
so i need a subroutine to prase the outgoing message and store those two line in two variable and when the incoming message will come then it will retrive those two line and compare with the previous two line.if match then the message is for this client otherwise discard.
My probelm is that i cannot store those two line in two variable.Any hint will help me a lot.