LIPH's C++ Codes
file.cpp File Reference
#include "liph/file.h"
#include <algorithm>
#include <filesystem>
#include <fstream>

Namespaces

namespace  liph
 

Functions

bool liph::read_file (const std::filesystem::path &pathname, std::string &output)
 read all from pathname, append to output More...
 
bool liph::write_file (const std::filesystem::path &pathname, const std::string &str)
 write all to pathname More...
 
bool liph::path_exists (const std::string &pathname)
 check path(file or directory) exists More...
 
std::vector< std::string > liph::list_files (const std::string &pathname)
 list all files(including directories) in pathname recursively and sort by names More...