Wiki
Clone wikiAspose Java for Docx4j / Load-Text-File
Aspose.Words
// 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
Updated