System.IOUtils.TFile.AppendText
Delphi
class function AppendText(const Path: string): TStreamWriter; static;
C++
static System::Classes::TStreamWriter* __fastcall AppendText(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 in append mode.
Use AppendText to open a file containing textual information in append mode. AppendText opens the file if it exists and seeks to the end of the file; otherwise, AppendText creates a new file. AppendText returns a TStreamWriter instance associated with the file opened file. After you finish using the TStreamWriter instance, make sure you destroy it. The following table lists the parameters expected by this method.
Name | Meaning |
---|---|
Path |
The path to the file that will be opened or created. |
Note: AppendText raises an exception if the file cannot be accessed or the path is invalid.