Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Functions
fileutil Namespace Reference

Functions

bool fileExists (const std::string &path)
 
bool readFile (const std::string &path, std::string *buffer)
 

Detailed Description

Provides generic file functions

Function Documentation

bool fileutil::fileExists ( const std::string &  path)

Returns true iff the file path exists

Parameters
pathrelative or absolute name of a file
bool fileutil::readFile ( const std::string &  path,
std::string *  buffer 
)

Reads all contents of path and store into buffer.

Parameters
[in]pathrelative or absolute name of a text file
[out]buffercontents of the file will be output here