From 59edd60ebec61bf24dd27063f85bcd049fd0af13 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 19 Jan 2017 16:20:13 -0500 Subject: killed common, more inventory, other random stuff --- include/fileio.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/fileio.hpp (limited to 'include/fileio.hpp') diff --git a/include/fileio.hpp b/include/fileio.hpp new file mode 100644 index 0000000..c5e33ec --- /dev/null +++ b/include/fileio.hpp @@ -0,0 +1,15 @@ +#ifndef FILEIO_HPP_ +#define FILEIO_HPP_ + +#include +#include +#include + +// reads the names of files in a directory into the given string vector +int getdir(std::string dir, std::list& files); + +// reads the given file into a buffer and returns a pointer to the buffer +std::string readFile(const std::string& path); +std::vector readFileA(const std::string& path); + +#endif // FILEIO_HPP_ -- cgit v1.2.3