using System; using System.IO; namespace taskapp1 { class Program { static void Main(string[] args) { Console.Title = "Scrabble program"; Console.WriteLine("Hello, starting the CodeIT code task!"); string[] lines1filein = { "T 3", "", "3", "4", "van", "vana", "asks", "knap", "", "T 2", "", "2", "1", "wow", "", "T 4", "", "4", "12", "aluminium", "bismuth", "boron", "carbon", "gallium", "hydrogen", "lead", "oxygen", "radon", "thallium", "tin", "xenon" }; System.IO.File.WriteAllLines(@"C:\scrabble.in", lines1filein); string[] lines2fileout = { "T 3", "", "3 4", "###", "van", "#*k", "#s#", "0 1 RRD", "0 1 RRL", "1 1 DRLD", "2 2 DD", "", "T 2", "", "3 1", "wow", "0 0 RR", "", "T 4", "", "17 19" , "0 12 DDDDDD" , "2 14 DDDDDD" , "3 9 RRRRRR" , "3 10 DDDDDD" , "5 7 RRR" , "7 14 RR" , "10 5 RRRRRRRR" , "9 3 DDDDD" , "11 5 RRRR" , "0 11 DDDD" , "14 1 DDDD" , "9 5 DDDDD" }; System.IO.File.WriteAllLines(@"C:\scrabble.out", lines2fileout); Console.WriteLine("Files scrabble.in and scrabble.out are generated and ready for use"); Console.ReadLine(); } } }