Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created July 19, 2019 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/7b968e0c617d5339d9d7aa3d24b1af82 to your computer and use it in GitHub Desktop.
Save rust-play/7b968e0c617d5339d9d7aa3d24b1af82 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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