ifw-core 6.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
file.cpp File Reference
#include <fstream>
#include <boost/filesystem/operations.hpp>
#include <rad/helper.hpp>
#include <ifw/core/utils/system/system.hpp>
#include <ifw/core/utils/string/string.hpp>
#include <ifw/core/utils/file/file.hpp>

Namespaces

namespace  ifw
 
namespace  ifw::core
 
namespace  ifw::core::utils
 
namespace  ifw::core::utils::file
 

Functions

std::string ifw::core::utils::file::CheckAddExtension (const std::string &filename, const std::string &extension)
 Check if filename has the specified extension (no initiating dot). If not, add it.
 
void ifw::core::utils::file::RemoveFile (const std::string &filename)
 Remove the referenced file, if it exists.
 
std::string ifw::core::utils::file::LoadFile (const std::string &filename, std::string *complete_filename=nullptr)
 Load a file and return the content.
 
void ifw::core::utils::file::SaveFile (const std::string &filename, const std::string &buffer, const bool overwrite=true)
 Save the contents inthe buffer into the given filename.
 
void ifw::core::utils::file::CheckCreatePath (const std::string &path)
 Check if the given path exists. If not, create it.