My application is somewhat database oriented. And here's what i'm trying to do.

A group of users (an unidentified number) is connected to my database program and every few seconds they send me a data string which updates their status in my database. What I initially wanted to do was an array of strings.

So whenever I receive a string, i automatically tokenize it, the first token is the user ID, and search only the first substring of the array of strings, which identifies the user. And then it writes over this string with the new string of data, if it does not find this first substring it will assume i have a new user and add a new element to the array.

So my strings are structured like the following...

(;"userID":XXX:YYYYY:ZZZZZ

Here's a sample of what would happen...

I receive the following string

(;7374648:XXX:YYYY:ZZZZZ

And i want to go through the following array of strings

(;7536472:XXX:YYYY:ZZZZZ
(;7393848:XXX:YYYY:ZZZZZ
(;7392838:XXX:YYYY:ZZZZZ
(;7302933:XXX:YYYY:ZZZZZ
(;7173642:XXX:YYYY:ZZZZZ
(;7374648:XXX:YYYY:ZZZZZ
(;7759404:XXX:YYYY:ZZZZZ

And update the string with the appropriate user ID with the new string that just came in.

Help?