Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int i = 0;
- FileInfo file = new FileInfo("TuringMachine.txt");
- StreamReader reader = file.OpenText();
- string s = reader.ReadLine();
- //Console.WriteLine(s);
- string[] rules = new string[10];
- while ((rules[i] = reader.ReadLine()) != null)
- {
- Console.WriteLine(rules[i]);
- i++;
- }
- reader.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment