public Import ( IDocument document, string filename ) : void | ||
document | IDocument | The TextDocument to fill. |
filename | string | The filename. |
return | void |
public void Import(IDocument document, string filename)
{
this._document = document;
string text = this.ReadContentFromFile(filename);
if (text.Length > 0)
this.ReadTextToDocument(text);
else
{
AODLWarning warning = new AODLWarning("Empty file. ["+filename+"]");
this.ImportError.Add(warning);
}
}