Click or drag to resize

AsciiImporterImportFromAsciiStream(DataTable, Stream, String, AsciiImportOptions) Method

Imports an Ascii stream into a table. The import options have to be known already.

Namespace: Altaxo.Serialization.Ascii
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void ImportFromAsciiStream(
	this DataTable dataTable,
	Stream stream,
	string streamOriginHint,
	AsciiImportOptions importOptions
)

Parameters

dataTable  DataTable
The table into which to import.
stream  Stream
The stream to read from.
streamOriginHint  String
Stream origin hint. If the stream was opened from a file, you should prepend FileUrlStart to the file name.
importOptions  AsciiImportOptions
The Ascii import options. This parameter must not be null. If the provided options are not fully specified, it is tried to analyse the stream to get fully specified options.

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).
Exceptions
ExceptionCondition
ArgumentNullException Argument importOptions is null or Argument table is null
ArgumentExceptionArgument importOptions: importOptions must be fully specified, i.e. all elements of importOptions must be valid. Please run a document analysis in-before to get appropriate values.
ArgumentOutOfRangeException Unconsidered AsciiColumnType: + impopt.RecognizedStructure[i].ToString() or Unknown switch case: + impopt.HeaderLinesDestination.ToString()
See Also