Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Load TXT file and save as word document using Aspose.Words Java in Ruby, simply invoke LoadTXT module.
Ruby Code
## The path to the documents directory.
data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'
\# Open the document.
doc = Rjb::import('com.aspose.words.Document').new(data_dir + "LoadTxt.txt")
\# Save as any Aspose.Words supported format, such as DOCX.
doc.save(data_dir + "LoadTxt Out.doc")
Download Load Text (TXT) File (Aspose.Words) from any of the below mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.