Guest User

Untitled

a guest
Aug 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if (dia == "" || mes == "" || ano == "")
  2. {
  3. ERRO erro = new ERRO();
  4. erro.Show();
  5. } else {
  6. using(StreamReader lerentrada = new StreamReader(@ "escreveentrada.txt"))
  7. {
  8.  
  9.  
  10. string[] leitor = lerentrada.ReadLine().Split(';');
  11. if (leitor[0] != null)
  12. {
  13. while ((leitor[0] = lerentrada.ReadLine()) != null)
  14. {
  15. if (leitor[2] == TDia.Text)
  16. {
  17. if (leitor[3] == Tmes.Text)
  18. {
  19. if (leitor[4] == Tano.Text)
  20. {
  21. TRelatorio.AppendText($ "{leitor}{Environment.NewLine}");
  22. }
  23. }
  24. }
  25. }
  26. } else {
  27.  
  28.  
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment