Skip to content

TCSVDocument.LoadFromStream

Load CSV data from a stream.

Declaration

Source position: csvdocument.pp line 97

public 
procedure TCSVDocument.LoadFromStream(AStream: TStream);

Description

LoadFromStream loads the CSV data from the aStream stream. It uses the settings introduced in TCSVHandler when determining fields and rows. If EqualColCountPerRow is True then it will add empty cells after reading the CSV data, so all rows have an equal count of columns..

See also

Name Description
EqualColCountPerRow Ensure every row has an equal amount of columns.
SaveToStream Save the CSV data to stream.
SaveToFile Save to file on disk.
LoadFromFile Load a CSV file into the document.
TCSVHandler Base class for CSV reading and writing classes.