Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7. namespace ConsoleApplication37
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. StreamReader olvas = new
  14. StreamReader("Adyversek.txt", Encoding.Default);
  15. string Adyversek;
  16. for (int i = 1; i < 27; i++)
  17. {
  18. Adyversek = olvas.ReadLine();
  19. Console.WriteLine(Adyversek);
  20. }
  21. olvas.Close();
  22.  
  23. string szövegfájl = "Ady2.txt";
  24. StreamWriter ir = new
  25. StreamWriter(szövegfájl, true, Encoding.Default);
  26. ir.WriteLine();
  27. Console.WriteLine("Eszenyi Mihály");
  28. ir.Close();
  29. Console.ReadKey();
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement