BinaryFile
Object List Hierarchy Next Object
Definition:
The BinaryFile object is used to read from and write to files in a mode that
does not interpret the contents of the file as ASCII text (compare this with
TextFile, which does interpret the contents as ASCII text). Binary files in
general are not usually directly human-readable.
Specialized Features:
The following tables list and briefly describe the properties and methods
added by BinaryFile. There are no added events.
Properties Use to...
Handle Access the file handle of an open binary file.
IsOpen Indicate whether or not the binary file is open (Read Only).
Position Determine the current position in the binary file.
SwapBytes Determine whether to swap the byte-order of numbers read with ReadInteger,
ReadLong, ReadSingle, ReadDouble, etc.
Methods Use to...
Close Close the file and release the file handle.
Create Create and open the file specified by FileName.
Open Open or create the file specified by FileName for reading and writing.
OpenReadOnly Open an existing file specified by FileName for reading only.
ReadChar Read a single byte from the file at current Position.
ReadData Read data from the file at current Position into a DataBuffer.
ReadDouble Read an 8-byte floating point number.
ReadDoubles Read an array of 8-byte floating point numbers.
ReadInteger Read a 2-byte integer.
ReadIntegers Read an array of 2-byte integers.
ReadLong Read a 4-byte integer.
ReadLongs Read an array of 4-byte integers.
ReadSingle Read a 4-byte floating point format number.
ReadSingles Read an array of 4-byte floating point numbers.
ReadString Read a string.
ReadTextDouble Read a floating point number stored as ASCII characters in the file.
ReadTextInteger Read an integer stored as ASCII characters in the file.
ReadTextLong Read a long stored as ASCII characters in the file.
ReadTextSingle Read a floating point number stored as ASCII characters in the file.
TextUnload Write a text representation of this object.
WriteChar Write a single byte to the file at current Position.
WriteData Write data to the file at current Position from a DataBuffer.
WriteDouble Write an 8-byte floating point number.
WriteDoubles Write an array of 8-byte floating point numbers.
WriteInteger Write a 2-byte integer.
WriteIntegers Write an array of 2-byte integers.
WriteLong Write a 4-byte integer.
WriteLongs Write an array of 4-byte integers.
WriteSingle Write a 4-byte floating point format number.
WriteSingles Write an array of 4-byte floating point numbers.
WriteString Write a string.
WriteTextDouble Write a floating point number stored as ASCII characters.
WriteTextInteger Write an integer stored as ASCII characters.
WriteTextLong Write a long stored as ASCII characters.
WriteTextSingle Write a floating point number stored as ASCII characters.
Copied Features:
Properties
Methods Events