%% Write Documents to Text File
% Write an array of documents to a text file.

documents = tokenizedDocument([
    "an example of a short sentence" 
    "a second short sentence"])
filename = "documents.txt";
writeTextDocument(documents,filename)

% Copyright 2012 The MathWorks, Inc.