// For complete examples and data files, please go to https://github.com/groupdocscomparison/GroupDocs_Comparison_NET
/// Compare two documents from file path with saving results into a stream
public static void CompareDcumentsFromPathToOutputStream()
{
// Get instance of GroupDocs.Comparison.Comparer and call method Compare.
GroupDocs.Comparison.Comparer comparison = Common.getComparison();
ICompareResult result = comparison.Compare(Path.Combine(Common.sourcePath, Common.sourceFile), Path.Combine(Common.targetPath, Common.targetFile), new ComparisonSettings { DeletedItemsStyle = new StyleSettings { StrikeThrough = true } });
// get result document as stream.
Stream stream = result.GetStream();
stream.Close();
}