ifw-core  4.1.0-pre1
Namespaces | Functions
file.hpp File Reference
#include <string>
#include <core/utils/base/base.hpp>

Go to the source code of this file.

Namespaces

 core
 
 core::utils
 
 core::utils::file
 

Functions

std::string 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. More...
 
void core::utils::file::RemoveFile (const std::string &filename)
 Remove the referenced file, if it exists. More...
 
std::string core::utils::file::LoadFile (const std::string &filename, std::string *complete_filename=nullptr)
 Load a file and return the content. More...
 
void 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. More...