System.WideStrings.TWideStrings.SaveToStream
Delphi
procedure SaveToStream(Stream: TStream); overload; virtual;
procedure SaveToStream(Stream: TStream; Encoding: TEncoding); overload; virtual;
C++
virtual void __fastcall SaveToStream(System::Classes::TStream* Stream)/* overload */;
virtual void __fastcall SaveToStream(System::Classes::TStream* Stream, System::Sysutils::TEncoding* Encoding)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.WideStrings.pas System.WideStrings.hpp |
System.WideStrings | TWideStrings |
Description
Writes the value of the Text property to a stream object.
Call SaveToStream to save the strings in the list to the stream specified by the Stream parameter. SaveToStream writes the strings delimited by carriage return or line feed pairs. If the stream is a file stream, SaveToStream does the same thing as SaveToFile, except the application must create and destroy the file stream.
If the Encoding parameter is not given, then the strings are saved with the default encoding, as specified in the Default property of the TEncoding class.