I have an array of files names ending with either .xml or .gxml. I am putting each element into another array. I need to ensure that the same file name is not added twice.
So the real question is how do I ensure the same element is not added twice into an array?