private void processResponseFileLine(string line, ArrayList result, StringBuilder sb)
{
int t = line.Length;
for(int i = 0; i < t; i++)
{
char c = line[i];
if (c == '"' || c == '\'')
{
char end = c;
for(i++; i < t; i++)
{
c = line[i];
if (c == end)
break;
sb.Append(c);
}
}
else if (c == ' ')
{
if (sb.Length > 0)
{
result.Add(sb.ToString());
sb.Length = 0;
}
}
else
{
sb.Append(c);
}
}
if (sb.Length > 0)
{
result.Add(sb.ToString());
sb.Length = 0;
}
}