>I wrote this code to store info coming from a text file. Each value in the txt file becomes an element in the array.
>
>
>string sFileName = Application.StartupPath + "\\A39442.txt";
>
>ArrayList aWords = new ArrayList();
>string sWord = "";
>
>StreamReader oFileReader = new StreamReader(sFileName);
>while ((sWord = oFileReader.ReadLine()) != null)
>{
> if (sWord != "")
> {
> aWords.Add(sWord);
> }
>}
>
>oFileReader.Close();
>
>
>
>Now I want to resize the array to be 2 dimensional, so I can insert another value describing each existing array element.
>
>Can someone show me how to do this please?
Kevin,
Check
http://www.source-code.biz/snippets/csharp/1.htmHmmm, let me check
http://sgdotnet.org/forums/thread/11145.aspx
If it's not broken, fix it until it is.
My Blog