Include the folder name in the file name parameter:
file.AddEntry("myFolder1/myhtml1.html", "<div>This is Saad</div>");
It doesn't matter if you use a forward slash (
/) or a backslash (
\) for the path separator, as the code will fix up the path as necessary. However, to use a backslash from C#, you'd either need to escape it, or use a verbatim string:
file.AddEntry("myFolder1\\myhtml1.html", "<div>This is Saad</div>");
file.AddEntry(@"myFolder1\myhtml1.html", "<div>This is Saad</div>");