barkermn01
10-08-2009, 12:49 PM
For some reason im having an exspetion shows when i have this code
lines = reader.ReadToEnd().Split('\n');
for (int i = 0; i < lines.Count(); i++)
{
cols[i] = lines[i].Split(',');
}
"Object reference not set to an instance of an object."
Is the handler error any help please
RESOLVED::
cols = new string[lines.count()][];
lines = reader.ReadToEnd().Split('\n');
for (int i = 0; i < lines.Count(); i++)
{
cols[i] = lines[i].Split(',');
}
lines = reader.ReadToEnd().Split('\n');
for (int i = 0; i < lines.Count(); i++)
{
cols[i] = lines[i].Split(',');
}
"Object reference not set to an instance of an object."
Is the handler error any help please
RESOLVED::
cols = new string[lines.count()][];
lines = reader.ReadToEnd().Split('\n');
for (int i = 0; i < lines.Count(); i++)
{
cols[i] = lines[i].Split(',');
}