byte[] aBytes = File.ReadAllBytes(filea); byte[] bBytes = File.ReadAllBytes(fileb); byte[] c = new byte[aBytes.Length + bBytes.Length]; aBytes.CopyTo(c, 0); bBytes.CopyTo(c, aBytes.Length); File.WriteAllBytes(path, c);