1
0
Fork 0
advent-of-code/src/bin/p03.rs

27 lines
596 B
Rust
Raw Normal View History

2022-12-03 04:48:30 +00:00
use std::fs;
use std::io::{self, BufRead, Read, Seek};
fn main() {
let filename = "etc/p03.txt";
let file = fs::File::open(filename).expect("Can't open file");
let mut reader = io::BufReader::new(file);
println!("PART ONE ---------------");
part1(reader.by_ref().lines());
reader.rewind().expect("Can't rewind");
println!("\n PART TWO ---------------");
part2(reader.lines());
}
fn part1(lines: impl Iterator<Item = std::io::Result<String>>) {
}
fn part2(lines: impl Iterator<Item = std::io::Result<String>>) {
}
#[cfg(test)]
mod tests {
use super::*;
}