Crates.io | iofs |
lib.rs | iofs |
version | 0.0.8 |
source | src |
created_at | 2023-05-25 05:38:48.781475 |
updated_at | 2023-07-23 08:12:48.705086 |
description | a simple lib for file system, input and output |
homepage | |
repository | |
max_upload_size | |
id | 874071 |
size | 115,042 |
use iofs::prelude::*;
fn main() -> std::io::Result<()> {
let mut f = FileInfo::open_smart("foo.txt")?;
f.rename("new_name")?;
assert!(f.name(), "new_name.txt");
Ok(())
}
use iofs::io::Console;
fn main() -> stools::io::Result<()> {
let mut console = Console::new();
let n = console.input::<i32>(Some("input a number: "))?;
Ok(())
}