I built a simple client/server in C#. I am trying to figure out how to take the data received from socket and parse it according to the client protocol (where ever there is a comma (,)) then store it to a variable in a class. How do you take the data stream and search for the delimiter, have the program store what it has read up until the delimter then continue until the next and repeat. I would imagine there is some type of for loop invloved.
data stream - secureID,emailaddress,phonenumber
Then store it to
m.secureID
m.Email
m.phone
thanks