WillemM
December 30th, 2002, 12:41 AM
I wrote a DLL file, that contains a StringCollection.
If you add a reference to this file, the StringCollection Class will become aviable in the System.Collections namespace !
You can use it like this:
private System.Collections.StringCollection strs;
public void Test()
{
strs = new System.Collections.StringCollection();
strs.LoadFromFile(@"c:\test.txt");
}
The following functions are defined:
Add(string text)
Remove(int index)
And ofcourse you can get/set items like this: strs[x] = "somestring"; somestring = strs[x];
If you add a reference to this file, the StringCollection Class will become aviable in the System.Collections namespace !
You can use it like this:
private System.Collections.StringCollection strs;
public void Test()
{
strs = new System.Collections.StringCollection();
strs.LoadFromFile(@"c:\test.txt");
}
The following functions are defined:
Add(string text)
Remove(int index)
And ofcourse you can get/set items like this: strs[x] = "somestring"; somestring = strs[x];