Sign in Join
FPDoc Onlineexperiment

TStrings.SaveToStream procedure

Member of TStringspublicIn unit Classes

Save the contents of the string to a stream.

Declaration

pascal
procedure SaveToStream(Stream: TStream); virtual; overload
procedure SaveToStream(Stream: TStream; IgnoreEncoding: Boolean)
 ; overload
procedure SaveToStream(Stream: TStream; AEncoding: TEncoding); virtual
 ; overload

Description

SaveToStream saves the contents of the stringlist to Stream. It writes the strings to the stream, separated by end-of-line markers, so each 'line' in the stream will contain 1 string from the stringlist.

Errors

An EStreamError exception can be raised if the stream cannot be written to.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.