I am using Aspose.Words dll for .net version 10.5.0.0 to read and load text file contents to document object in a line by line manner. So the process is taking more time to load large size text file. Is there any direct method to load text (.txt) file to document object. Please find the piece of code which i have used to load text file below.
_document = new Document();
DocumentBuilder builder = new DocumentBuilder(_document);
using (StreamReader reader = new StreamReader(filename, encoding))
string line = null;
while ((line = reader.ReadLine()) != null)