C#Code Snippet For File Conversion
C#Code Snippet For File Conversion
1) Go to add reference tab and add spire.doc dll, in your project.
System.IO.File.WriteAllText("filename.txt", sb.ToString());
if (System.IO.File.Exists("filename.txt"))
{
// MessageBox.Show("filename.txt is already exist");
}
else
{
var file = System.IO.File.Create("filename.txt");