Remove file
Rust
#![allow(unused)]
fn main() {
use std::fs;
fs::remove_file("file.txt")?;
}
Python
import os
os.remove("file.txt")
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#![allow(unused)]
fn main() {
use std::fs;
fs::remove_file("file.txt")?;
}
import os
os.remove("file.txt")