stools

Crates.iostools
lib.rsstools
version1.1.6
sourcesrc
created_at2023-02-08 07:27:58.040669
updated_at2023-05-18 12:45:31.098876
descriptiona simple lib for file system, input and output
homepage
repository
max_upload_size
id779448
size83,625
Karl (KByys)

documentation

README

Example

File System

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(())	
}

IO

use stools::io::Console;  
fn main() -> stools::io::Result<()> {  
	let mut console = Console::new();  
	let n = console.input::<i32>("input a number: ")?;  
	Ok(())  
}
Commit count: 0

cargo fmt