Consider memory-mapped files where disk blocks of a file are mapped to pages in memory, so that file I/O can be treated as routine memory access.
mmap()
read()
write()