[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Creates a file stream.
Source position: line 0
public constructor TFileStream.Create( |
const AFileName: String; |
Mode: Word |
); |
const AFileName: String; |
Mode: Word; |
Rights: Cardinal |
); |
Create creates a new instance of a TFileStream class. It opens the file AFileName with mode Mode, which can have one of the following values:
fmCreate | TFileStream.Create creates a new file if needed. |
fmOpenRead | TFileStream.Create opens a file with read-only access. |
fmOpenWrite | TFileStream.Create opens a file with write-only access. |
fmOpenReadWrite | TFileStream.Create opens a file with read-write access. |
After the file has been opened in the requested mode and a handle has been obtained from the operating system, the inherited constructor is called.
If the file could not be opened in the requested mode, an EFOpenError exception is raised.
|
Base class for streams. |
|
|
The filename of the stream. |
|
|
Create a handlestream from an OS Handle. |
lazarus-ccr.sourceforge.net |