0
I can’t fill out that list the way it is:
foreach (var item in text)
{
string[] linha = item.Split('\n');
foreach (var i in linha)
{
string nova_string = i.Substring(0, i.LastIndexOf("\r"));
lista.Add(nova_string);
}
}
You’re making that mistake:
Length cannot be less than zero. Parameter name: length
Possible duplicate
– Marco Souza