Skip to content

Instantly share code, notes, and snippets.

@ebresafegaga
Last active January 23, 2023 11:20
Show Gist options
  • Save ebresafegaga/ab81955f39d2f320f00f13ddc76ae89c to your computer and use it in GitHub Desktop.
Save ebresafegaga/ab81955f39d2f320f00f13ddc76ae89c to your computer and use it in GitHub Desktop.
let mut file = std::fs::OpenOptions::new()
.write(true)
.append(false)
.create(true)
.open("/home/ebresafegaga/server.log")
.unwrap();
let data = format!("{:?}", linearization.linearization);
std::io::Write::write(&mut file, data.as_ref()).unwrap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment