System.IOUtils.TFile.OpenWrite
Delphi
class function OpenWrite(const Path: string): TFileStream; static;
C++
static System::Classes::TFileStream* __fastcall OpenWrite(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TFile |
Description
Opens a file for writing and returns a stream associated with that file.
Call OpenWrite to open a file for writing. OpenWrite returns a TFileStream instance, which can be used only to write data. The following table lists the parameters xpected by this method.
Name | Meaning |
---|---|
Path |
The path to the file that will be opened for writing. |
Note: OpenWrite raises an exception if the file cannot be opened, the path is invalid, or the user has insufficient privileges to complete this operation.