aboutsummaryrefslogtreecommitdiff
path: root/oop2w1/ProcessFile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'oop2w1/ProcessFile.hpp')
-rw-r--r--oop2w1/ProcessFile.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/oop2w1/ProcessFile.hpp b/oop2w1/ProcessFile.hpp
new file mode 100644
index 0000000..37b82d4
--- /dev/null
+++ b/oop2w1/ProcessFile.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <iostream>
+
+#include "ProcessFile.h"
+
+template <typename T>
+void ProcessFile::read_and_print(std::ifstream &file) {
+ T waarde;
+ file.read((char*) &waarde, sizeof(T));
+ std::cout << waarde << std::endl;
+}
+