diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-22 16:09:14 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-22 16:09:14 +0200 |
commit | d90cecc758d3c348f3aedf9c6e45a13ba6a0b0c3 (patch) | |
tree | 1b24e7c0fac394ef5cf0d6538b5209b89e91f86e /main.cpp | |
parent | e185fe6bc6cbe9bc1e0694fc5b11650118eeef82 (diff) |
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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; } |