Function Util::read_file

Function Util::read_file#

Function Documentation#

std::string Util::read_file(const std::string &fpath)#

Reads the content of a file with the given path.

Parameters:

fname – the path of the file to read

Throws:

invalid_argument – if file is not readable

Returns:

the files content