using System.Text.RegularExpressions;
string[] stringarray = Regex.Split(textstring, "\r\n");
that will create an array of strings if textstring is the entire text of a file with each string you want on a new line
or this is how i loaded the exstention names form the RMX-OS config file into an array
string[] EXTENSIONS = new string[] {""};
EXTENSIONS[extension_int] = namestring;
extension_int += 1;
and I started the extension_int at 0
useing this you just read each line of the file to a string load it in to the array at the extension_int index and then increase extension_int by 1 to move the next spot in the array for the next string.