BinaryFile - Binary file access
Accessing binary files supports reading and writing files. As long as no file position is set, reading or writing files is done sequentially. In order to write data at specific location, one may set the lastPosition property. In this case, lastPosition has to be set to end of file before closing in order to avoid truncating the file at last write position.