AppendBinary(FileName: String): IBinaryWriter;
FileName — a path and name of the file that should be opened.
The AppendBinary method opens a file for writing in a binary format and sets a cursor to the end of a file.
Sub Main;
Var
BynW: IBinaryWriter;
Begin
If File.Exists("c:\New_folder\1.txt") Then
BynW:=File.AppendBinary("c:\New_folder\1.txt");
BynW.WriteDateTime(DateTime.Now);
End If;
End Sub Main;
After executing this example, current date and time converted to a binary format are written into the end of the file 1.txt.
See also: