how do I take the array content of GetFiles and GetDirectories to creat an alphabetical listing of first characters removing all duplicated?
Posted on 2008-06-15
I'm really new to c#, so please take it easy on me.
I wish to be able to use the methods GetFiles and GetDirectories to return a listing of all of the files and directories of a virtual directory, keepthing the paths relative to the root of the webserver, not the file system location.
Then from the two array listings, take only the first character from each line, of each array for the name of the item, bringing the list down to 1st characters only, then combine the two arrays, to create 1 array, maybe first maybe last taking the time to remove all duplicates.
Once I have the list I'm gona use an asp repeater to set it up as a <ul>, but that's the easy part.
Thanks in advance