Skip to content

Instantly share code, notes, and snippets.

@ierhalim
Created December 27, 2020 14:04
Show Gist options
  • Select an option

  • Save ierhalim/2e8d88bdb286dee6153ae494f783144d to your computer and use it in GitHub Desktop.

Select an option

Save ierhalim/2e8d88bdb286dee6153ae494f783144d to your computer and use it in GitHub Desktop.
Y302 Paralel programlama
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