#include <fstream>
#include <string>
Go to the source code of this file.
Functions | |
const void * | file_get_contents (const char *filename, size_t *size) |
bool | file_unmap_contents (void *base, size_t size) |
bool | getNonEmptyLine (std::fstream &file, std::string &line, bool onlyMySection=false, bool *mySection=NULL) |
|
loads a file to memory. size is filled with the file's size or -1 if the return value is NULL Definition at line 33 of file utils.cc. References fd. |
|
frees the memory allocated with file_get_contents |
|
Referenced by parse_connect_cfg(), and parse_object_cfg(). |