diff options
Diffstat (limited to 'oop2w1/ProcessFile.hpp')
-rw-r--r-- | oop2w1/ProcessFile.hpp | 13 |
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; +} + |