summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2023/tpl.rs19
-rw-r--r--README9
2 files changed, 27 insertions, 1 deletions
diff --git a/2023/tpl.rs b/2023/tpl.rs
new file mode 100644
index 0000000..a932e43
--- /dev/null
+++ b/2023/tpl.rs
@@ -0,0 +1,19 @@
+use std::fs::File;
+use std::io::Read;
+
+fn main() {
+ let filename = "in/day .ref";
+ // let filename = "in/day .pzl";
+
+ let mut f = File::open(filename).expect("cannot open file");
+ let mut content = String::new();
+ f.read_to_string(&mut content).expect("cannot read file");
+ let lines: Vec<_> = content.trim_end().split('\n').collect();
+ println!("{:?}", lines);
+
+ let res1 = 0;
+ let res2 = 0;
+
+ println!("res1: {}", res1);
+ println!("res2: {}", res2);
+}
diff --git a/README b/README
index 689b318..129cd27 100644
--- a/README
+++ b/README
@@ -1,3 +1,10 @@
-advent of code
+### advent of code ###
+
+2022
+- all solutions in python
+- some in c and go
+
+2023
+- attempt to solve in rust