[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Loads the contents of a file into memory.
Source position: classesh.inc line 697
public procedure TMemoryStream.LoadFromFile( |
const FileName: String |
); |
LoadFromFileloads the contents of the file with name FileNameinto the memory stream. The current contents of the memory stream is replaced by the contents of the file. Memory is allocated as needed.
The LoadFromFilemethod simply creates a filestream and then calls the TMemoryStream.LoadFromStreammethod.
|
Loads the contents of a stream into memory. |