Class RandomAccessFile (unit ODFileUnit) |
TObject
This class supports random access to fixed-sized records.
Constructors |
------------------------------------------------------------------------------ RandomAccessFile methods.
Functions |
usual stuff
Record locking
Properties |
Events |
Variables |
Constructors |
record size
------------------------------------------------------------------------------ RandomAccessFile methods. RawFile class does most of the work. ------------------------------------------------------------------------------ constructor creates rawfile
Functions |
Usual stuff
usual stuff
Extend the file by count records. The new records will contain garbage.
extend file by count records
Record locking
Record locking
Open or create a RandomAccessFile. The RecSize parameter indicates the size of the recoord in the file. This is not stored in the file itself.
Mode mapping not necessary, as we pass things thru to RawFile
read the next record sequentially. The first call to this method must be preceded with a call to ReadRecord.
read next record. Should have made som positioning call (like REadRecord) before calling this
Read a record. If the record does not exist, the function returns false.
read a record
Return the number of recordsin the file.
Return number of records. This causes several seeks, so may be slow
and unlocking
write a record at record number recno, which must be greater or equal to zero. A record number greater than that of the last record will extend the file.
write record. If record number higher than current highest, the call to Seek will extend the file
Properties |
Events |
Variables |
RawFile implementation