Fenrir112

%u0422%u044C%u044E%u0440%u0438%u043D%u0433 02

Dec 4th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. static void Main(string[] args)
  2.         {
  3.             int i = 0;
  4.             FileInfo file = new FileInfo("TuringMachine.txt");
  5.             StreamReader reader = file.OpenText();
  6.             string s = reader.ReadLine();
  7.             //Console.WriteLine(s);
  8.             string[] rules = new string[10];
  9.             while ((rules[i] = reader.ReadLine()) != null)
  10.             {
  11.                 Console.WriteLine(rules[i]);
  12.                 i++;
  13.             }
  14.  
  15.             reader.Close();
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment