aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-22 16:09:14 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-22 16:09:14 +0200
commitd90cecc758d3c348f3aedf9c6e45a13ba6a0b0c3 (patch)
tree1b24e7c0fac394ef5cf0d6538b5209b89e91f86e /main.cpp
parente185fe6bc6cbe9bc1e0694fc5b11650118eeef82 (diff)
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 1846bfb..3ee5b4c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,4 +1,14 @@
-int main() {
+#include <cstdio>
+
+#include "FileReader.h"
+
+int main(int argc, char** argv) {
+ for (int i = 1; i < argc; i++) {
+ File & r = FileReader::open(argv[i]);
+ printf("-- %s --\n%s\n", argv[i], r.read().c_str());
+ r.close();
+ }
+
return 0;
}