Created
July 19, 2019 09:56
-
-
Save rust-play/7b968e0c617d5339d9d7aa3d24b1af82 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs; | |
fn main() { | |
let s = fs::read_to_string("input.txt").unwrap(); | |
let slice: str = *s.as_str(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment