00001 using System; 00002 using Server; 00003 using System.IO; 00004 using System.Text; 00005 using System.Collections; 00006 using System.Collections.Specialized; 00007 00008 namespace ConsoleServer 00009 { 00013 class Class1 { 00017 [STAThread] 00018 static void Main(string[] args) { 00019 // random testing 00020 // StreamReader a = new StreamReader(@"C:\Temp\Foo1.txt"); 00021 // StreamReader b = new StreamReader(@"C:\Temp\Foo2.txt"); 00022 // 00023 // string originalString = a.ReadToEnd(); // "Line 1\nLine 2\nLine 3\nLine 4\nLine 5"; 00024 // string newString = b.ReadToEnd(); //"Line 1\nLine 2\nLine 2.5\nLine 3\nLine 4"; 00025 // MemoryStream sr1 = new MemoryStream(Encoding.ASCII.GetBytes(originalString)); 00026 // MemoryStream sr2 = new MemoryStream(Encoding.ASCII.GetBytes(newString)); 00027 // 00028 // ArrayList foo = CacheManager.Diff(sr1, sr2); 00029 // Console.WriteLine(Common.CacheManager.Patch(Encoding.ASCII.GetBytes(originalString), foo)); 00030 00031 // core 00032 MCP masterControl = new MCP(); 00033 masterControl.Start(); 00034 00035 00036 } 00037 00038 00039 00040 } 00041 }