Skip to content

Instantly share code, notes, and snippets.

@hapejot
Created March 30, 2024 20:10
Show Gist options
  • Select an option

  • Save hapejot/296d5a84ac650bece76beb4c0dcb60ff to your computer and use it in GitHub Desktop.

Select an option

Save hapejot/296d5a84ac650bece76beb4c0dcb60ff to your computer and use it in GitHub Desktop.
Read file into String
use std::fs;
fn main() {
let s = fs::read_to_string("address.txt").unwrap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment