AODL.Document.Import.PlainText.CsvImporter.Import C# (CSharp) Method

Import() public method

Imports the specified filename.
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;
			ArrayList lines			= this.GetFileContent(filename);
			
			if (lines.Count > 0)
				this.CreateTables(lines);
			else
			{
				AODLWarning warning	= new AODLWarning("Empty file. ["+filename+"]");
				this.ImportError.Add(warning);
			}
		}