Crates.io | stools |
lib.rs | stools |
version | 1.1.6 |
source | src |
created_at | 2023-02-08 07:27:58.040669 |
updated_at | 2023-05-18 12:45:31.098876 |
description | a simple lib for file system, input and output |
homepage | |
repository | |
max_upload_size | |
id | 779448 |
size | 83,625 |
use stools::prelude::*;
fn main() -> std::io::Result<()> {
let mut f = FileInfo::open_or_create("foo.txt")?;
f.rename("new_name")?;
println!("{}", f.full_name());
Ok(())
}
use stools::io::Console;
fn main() -> stools::io::Result<()> {
let mut console = Console::new();
let n = console.input::<i32>("input a number: ")?;
Ok(())
}