// For complete examples and data files, please go to https://github.com/groupdocsviewer/GroupDocs_Viewer_NET
// set an html file name with absolute path
String fname = Path.Combine(Path.GetFullPath(OutputHtmlPath), Path.GetFileNameWithoutExtension(filename) + ".html");
// create a file at the disk
System.IO.File.WriteAllText(fname, content);