tgbot-cpp
FileTools Namespace Reference

Functions

std::string read (const std::string &filePath)
 
bool write (const std::string &content, const std::string &filePath)
 

Function Documentation

std::string FileTools::read ( const std::string &  filePath)

Reads whole file to string.

Parameters
filePathPath to a file
Returns
string with file contents
bool FileTools::write ( const std::string &  content,
const std::string &  filePath 
)

Save file to disk.

Parameters
filePathPath to a file
Returns
bool success