Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Resize An Array
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
C# Resize An Array
Miscellaneous
Thread ID:
01326722
Message ID:
01326722
Views:
56
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?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform