Direct Access
Direct access 允許 application 指定 logical block / record number 讀寫 file,不必從頭掃到目標位置。
read block n
write block n它適合 disk 這類 random-access device,也適合 database、large array、固定大小 records 等需要跳到特定位置的資料。
UNIX-like system 常用 byte stream + offset model:seek() 改變 current offset,再 read() / write()。