mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
9 lines
274 B
Rust
9 lines
274 B
Rust
// { "preopens": { "/scratch": "scratch" }, "files": { "scratch/file": "file" } }
|
|
|
|
use std::io::Write;
|
|
|
|
fn main() {
|
|
let mut file = std::fs::File::create("/scratch/file").unwrap();
|
|
assert_eq!(file.write(b"fi").unwrap(), 2);
|
|
assert_eq!(file.write(b"le").unwrap(), 2);
|
|
}
|