Apply() public method

public Apply ( string oldFileName, string newFileName, bool validate ) : void
oldFileName string
newFileName string
validate bool
return void
Example #1
0
        static void Main(string[] args)
        {
            if (args.Length != 3)
            {
                Console.WriteLine("Usage: [oldFile] [patchFile] [newFile]");
                return;
            }

            using (Patch p = new Patch(args[1]))
            {
                p.PrintHeaders();
                p.Apply(args[0], args[2], true);
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            if (args.Length != 3)
            {
                Console.WriteLine("Usage: [oldFile] [patchFile] [newFile]");
                return;
            }

            using (Patch p = new Patch(args[1]))
            {
                p.PrintHeaders();
                p.Apply(args[0], args[2], true);
            }
        }