iofs

Crates.ioiofs
lib.rsiofs
version0.0.8
sourcesrc
created_at2023-05-25 05:38:48.781475
updated_at2023-07-23 08:12:48.705086
descriptiona simple lib for file system, input and output
homepage
repository
max_upload_size
id874071
size115,042
Karl (blueteary)

documentation

README

Example

File System

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

IO

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

cargo fmt