Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 {
- }
- }
- }
Add Comment
Please, Sign In to add comment