[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'LazUTF8Classes' (#lazutils)

TMemoryStreamUTF8.LoadFromFile

Loads the content in the stream from the specified file.

Declaration

Source position: lazutf8classes.pas line 38

public procedure TMemoryStreamUTF8.LoadFromFile(

  const FileName: string

);

Arguments

FileName

  

File name where where content for the stream is stored.

Description

LoadFromFile is a procedure used to load the content for the stream from the specified file name. LoadFromFile uses a TFileStreamUTF8 instance to open the file specified in FileName, and calls LoadFromStream to store the contents in the memory stream.

See also

TMemoryStream.LoadFromFile