0
I am unable to compare with the data in the notepad. This data is inserted online and separated by; In short, enter
value;description;day;month;year
if (dia == "" || mes == "" || ano == "")
{
ERRO erro = new ERRO();
erro.Show();
} else {
using(StreamReader lerentrada = new StreamReader(@ "escreveentrada.txt"))
{
string[] leitor = lerentrada.ReadLine().Split(';');
if (leitor[0] != null)
{
while ((leitor[0] = lerentrada.ReadLine()) != null)
{
if (leitor[2] == TDia.Text)
{
if (leitor[3] == Tmes.Text)
{
if (leitor[4] == Tano.Text)
{
TRelatorio.AppendText($ "{leitor}{Environment.NewLine}");
}
}
}
}
} else {
}
}
}
Any particular problem? Is the file too large? The computer has too much memory restriction?
– Maniero
In fact, I don’t think I can read the data correctly. Because the Textbox data until it goes right in, you know? But when it comes to comparing, it doesn’t compare.
– Hellan Diangell's
You’re reading it right, I can assure you frmework that does it and it does not err, the problem is in something after that.
– Maniero
I get it, I just wonder if I’m comparing it correctly then?
– Hellan Diangell's
That’s the problem with the question, only you know.
– Maniero
Complicated. But I entered the data this way as I said Value;Description;dia;mes;ano
– Hellan Diangell's