2017-02-03 00:55:15 +01:00
|
|
|
#ifndef IOUTILITIES_MISC_H
|
|
|
|
#define IOUTILITIES_MISC_H
|
|
|
|
|
|
|
|
#include "../global.h"
|
|
|
|
|
|
|
|
#include <string>
|
2019-12-15 19:00:15 +01:00
|
|
|
#include <string_view>
|
2017-02-03 00:55:15 +01:00
|
|
|
|
2019-06-10 21:56:46 +02:00
|
|
|
namespace CppUtilities {
|
2017-02-03 00:55:15 +01:00
|
|
|
|
|
|
|
CPP_UTILITIES_EXPORT std::string readFile(const std::string &path, std::string::size_type maxSize = std::string::npos);
|
2019-12-15 19:00:15 +01:00
|
|
|
CPP_UTILITIES_EXPORT void writeFile(std::string_view path, std::string_view contents);
|
|
|
|
} // namespace CppUtilities
|
2017-02-03 00:55:15 +01:00
|
|
|
|
|
|
|
#endif // IOUTILITIES_MISC_H
|