AppendBinary(FileName: String): IBinaryWriter;
FileName — path and name of the file that must be opened.
The AppendBinary method opens a file for writing in a binary format and puts a cursor to the end of a file.
Sub UserProc;
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 UserProc;
After executing the example the current date and time converted into a binary format are written into the end of the 1.txt file.
See also: