Click or drag to resize

AsciiImporterTryImportFromMultipleAsciiFilesVertically(DataTable, IEnumerableString, Boolean, Boolean, String) Method

Imports multiple Ascii files into the provided table in vertical order, i.e. in new rows.. Depending on the value of determineImportOptionsSeparatelyForEachFile, the import options are either deterimined from the first file and then used for all other files, or determined separately for each file. If the names of the subsequently imported table columns match, the data will be written in the matching column. Otherwise new columns with the unmatched column names were created. Property columns will only be imported from the first table.

Namespace: Altaxo.Serialization.Ascii
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool TryImportFromMultipleAsciiFilesVertically(
	this DataTable dataTable,
	IEnumerable<string> fileNames,
	bool sortFileNames,
	bool determineImportOptionsSeparatelyForEachFile,
	out string errors
)

Parameters

dataTable  DataTable
The table the data should be imported to.
fileNames  IEnumerableString
An array of filenames to import.
sortFileNames  Boolean
If true, the fileNames are sorted before usage in ascending order using the default string comparator.
determineImportOptionsSeparatelyForEachFile  Boolean
If true, the import options are determined for each file separately. Otherwise, i.e. if false, the import options are determined from the first file that is imported.
errors  String
Null if no error occurs, or an error description.

Return Value

Boolean
True if successfull; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also