I want to have an array based on the lines in the file, but at the moment its a fixed sized array:
string[] converList = new string[6]; // Array containing TXT lines
Reading the file:
void ReadConver()
{
string line;
int i = 0;
System.IO.StreamReader file =
new System.IO.StreamReader("C:\\Users\\Kennyist\\Documents\\Visual Studio 2010\\Projects\\soft140as3\\convert.txt");
while ((line = file.ReadLine()) != null)
{
converList[i] = line;
i++;
}
}
How would I do this?