Aspose.Words - Load Text File

// The encoding of the text file is automatically detected.
Document doc = new Document(dataPath + "LoadTxt.txt");

// Save as any Aspose.Words supported format, such as DOCX.
doc.save(dataPath + "AsposeLoadTxt_Out.docx");

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Dec 5, 2014 at 11:32 AM by shoaibkhan, version 1