i have a file that i read into an array.
then i used that array and step through it one by one.
while stepping through it i run some processes that write back to the array, but the problem i am having is that i'm gettind duplicates in the array. what i'd like to do is before writing back to the array, is to check to see if that value exists, and if it does not exist then write it.
for example: myfile contains A,B,C. myfile gets put into myarray. so myarray contains A,B,C. I read myarray[0] and run some processes. the processes return C,D,E. I write that back to the array, and myarray looks like A,B,C,C,D,E. I have 2 C's. How would i make it so that i check for duplicates first and then write to the array so my final result would be A,B,C,D,E.
the one problem is, that this is a real time process, so i keep reading the array as values are added to it.
plz help!
djpennin@yahoo.com