Created
December 27, 2020 14:04
-
-
Save ierhalim/2e8d88bdb286dee6153ae494f783144d to your computer and use it in GitHub Desktop.
Y302 Paralel programlama
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.IO; | |
| using System.Threading; | |
| namespace LogReader | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| string filePath = @$"{Path.GetTempPath()}\examplelog.txt"; | |
| if (!File.Exists(filePath)) | |
| { | |
| Console.WriteLine("Log file could not be found"); | |
| } | |
| while (true) | |
| { | |
| string logFileContent = File.ReadAllText(filePath); | |
| Console.WriteLine(logFileContent); | |
| Thread.Sleep(1000); | |
| Console.Clear(); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment