Create a new instance of the TMOFile class.
Source position: gettext.pp line 67
public constructor TMOFile.Create( |
const AFilename: string |
); |
AStream: TStream |
); |
AFilename |
|
File to open. |
AStream |
|
Contents of a .mo file. |
Create creates a new instance of the MOFile class. It opens the file AFileName or the stream AStream. If a stream is provided, it should be seekable.
The whole contents of the file is read into memory during the Create call. This means that the stream is no longer needed after the Create call.
If the named file does not exist, then an exception may be raised. If the file does not contain a valid TMOFileHeader structure, then an EMOFileError exception is raised.
|
Removes the TMOFile instance from memory. |