Advertisement
grukas

Próbamunka/lekérés

Apr 12th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 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 időjárásos
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             StreamReader read = new StreamReader("temperatures.txt"); //csak fájlból tudok dolgozni
  15.             string memory = "nil";
  16.             while (true)
  17.             {
  18.                 if (DateTime.Now.ToString("hhmmss")=="000000")
  19.                 {
  20.                     memory = read.ReadLine();
  21.                 }
  22.                    
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement