Skip to content

Instantly share code, notes, and snippets.

@isaacssemugenyi
Created December 10, 2023 07:06
Show Gist options
  • Save isaacssemugenyi/33c74ce5723e6419c983f2c769e3fc1d to your computer and use it in GitHub Desktop.
Save isaacssemugenyi/33c74ce5723e6419c983f2c769e3fc1d to your computer and use it in GitHub Desktop.
let mut input_file = File::open(file_path)?;
let mut contents = String::new();
input_file.read_to_string(&mut contents)?;
println!("{}", contents);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment