All,
I am reading in a text file into my program. I have managed to do the following
1. Split first line of the text file up based on the position of the commas and put them into an array. I.E
StreamReader reader = new StreamReader("shopping.txt");
string line = reader.ReadLine();
string[] elements= line.Split(',');
2. I have also managed to split each line of the text file into an array.
string record = reader.ReadToEnd();
string test = record.Replace(',','\t');
string[] creturn = test.Split('\n');
My problem is however that I am unable to make an array of creturns[] on lines that already have an array of elements[].
I would appreciate any assistance you may be able to give me.