diff options
author | Andy <drumsetmonkey@gmail.com> | 2017-01-20 10:37:21 -0500 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2017-01-20 10:37:21 -0500 |
commit | 4d8f9974156068e4595bf219cacfd9fcd2fd7174 (patch) | |
tree | f3e938c0e49537a9dea661f46eed6ee74950b48a /include/fileio.hpp | |
parent | 1894e311bdeb098c3bef9bd342e0eaf78d197a9b (diff) | |
parent | 1ac412a5496fb6c63c47f199dfc7facd5f4c080a (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'include/fileio.hpp')
-rw-r--r-- | include/fileio.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <string> +#include <list> +#include <vector> + +// reads the names of files in a directory into the given string vector +int getdir(std::string dir, std::list<std::string>& files); + +// reads the given file into a buffer and returns a pointer to the buffer +std::string readFile(const std::string& path); +std::vector<std::string> readFileA(const std::string& path); + +#endif // FILEIO_HPP_ |