
July 26th, 2004, 02:31 AM
|
|
Contributing User
|
|
Join Date: May 2004
Posts: 40
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
Like I understand it:
You want one list with X elements, and another list (or file) with Y, and (X !Є Y)?
Lets call X your first list (not the file, and Y the file's list)
PHP Code:
TStringList *Y = new TStringList;
Y->LoadFromFile(filename);
for (int i = 0; i < Y->Count; i++)
if (X->IndexOf(Y->Strings[i]) >= 0) X->Delete(X->IndexOf(Y->Strings[i]));
I have not tested this, but I think it'll work.
|