Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 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.  
  8. namespace _3c0ticri_c275_1
  9. {
  10. class CLog1
  11. {
  12.  
  13. private static StreamWriter sw; // objekt pro logovaci soubor
  14. public static void Start() // zalozit txt
  15. {
  16. sw = new StreamWriter("3c0ticri_c275_c1.txt");
  17. sw.Flush();
  18.  
  19. }
  20.  
  21. public static void Log(string input) // zapisovat do txt
  22. {
  23. sw.Write(input);
  24. sw.Flush();
  25.  
  26. }
  27.  
  28. public static void End() // zavrit txt
  29. {
  30. sw.Flush();
  31. sw.Close();
  32.  
  33. }
  34.  
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement