AsciiImporterToArraysImportFromAsciiStream(Stream, String, AsciiImportOptions) Method |
Imports an Ascii stream into a table. The import options have to be known already.
Namespace: Altaxo.Serialization.AsciiAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic void ImportFromAsciiStream(
Stream stream,
string streamOriginHint,
AsciiImportOptions importOptions
)
Parameters
- 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.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException |
Argument importOptions is null
or
Argument table is null
|
| ArgumentException | Argument 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