croco 0.1.0

High-level library on top of Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use std::fs::File;
use std::io::{ErrorKind, Read};
use croco::input;


fn read_text(path:String) -> String {
    let mut f = File::open(path).unwrap();
    let mut s = String::new();
    f.read_to_string(&mut s).unwrap();
    return s;
}


fn main() {
    println!("Hello, world!");
}