[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)


Load the contents of a stream as a series of strings.


Source position: classesh.inc line 746

public procedure TStrings.LoadFromStream(

  Stream: TStream

); virtual; overload;

procedure TStrings.LoadFromStream(

  Stream: TStream;

  IgnoreEncoding: Boolean

); overload;

procedure TStrings.LoadFromStream(

  Stream: TStream;

  AEncoding: TEncoding

); virtual; overload;


LoadFromStream loads the contents of Stream into the stringlist. Each line in the stream (as marked by the end-of-line marker of the particular OS the application runs on) becomes one string in the stringlist. This action replaces the contents of the stringlist, it does not append the strings to the current content.

See also



Load the contents of a file as a series of strings.



Save the contents of the list to a file.



Save the contents of the string to a stream.

Documentation generated on: Jun 22 2020