gistlib
main.rsuse std::fs::File; use std::io::{Write}; fn main() { let mut file = File::create("numbers.txt").unwrap(); for i in 1..=10 { writeln!(&mut file, "{}", i).unwrap(); } } 189 chars11 lines
use std::fs::File; use std::io::{Write}; fn main() { let mut file = File::create("numbers.txt").unwrap(); for i in 1..=10 { writeln!(&mut file, "{}", i).unwrap(); } }
gistlibby LogSnag