Continuously read,write to disk, using random offsets and lengths. Adapted from random-access-storage/random-access-file.
```rust use std::path::PathBuf; use tempdir::TempDir;
let dir = TempDir::new("random-access-disk").unwrap(); let mut file = randomaccessdisk::RandomAccessDisk::new(dir.path().join("README.db"));
file.write(0, b"hello").await.unwrap(); file.write(5, b" world").await.unwrap(); let _text = file.read(0, 11).await.unwrap(); ```
sh
$ cargo add random-access-disk
MIT OR Apache-2.0