27 lines
596 B
Rust
27 lines
596 B
Rust
|
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::*;
|
||
|
}
|