Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace _3c0ticri_c275_1
- {
- class CLog1
- {
- private static StreamWriter sw; // objekt pro logovaci soubor
- public static void Start() // zalozit txt
- {
- sw = new StreamWriter("3c0ticri_c275_c1.txt");
- sw.Flush();
- }
- public static void Log(string input) // zapisovat do txt
- {
- sw.Write(input);
- sw.Flush();
- }
- public static void End() // zavrit txt
- {
- sw.Flush();
- sw.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement