Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. public cText(string fisier)
  2.         {
  3.             try
  4.             {
  5.                 using (StreamReader sr = new StreamReader(fisier))
  6.                 {
  7.                     string line;
  8.  
  9.                     while ((line = sr.ReadLine()) != null)
  10.                     {
  11.                         Console.WriteLine(line);
  12.                     }
  13.                 }
  14.                 entropie = .0;
  15.             }
  16.             catch (Exception e)
  17.             {
  18.                 Console.WriteLine("Buggie: {0}", e);
  19.             }
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement