ug4
file_util.cpp File Reference

Implementation of OS independent file utility functions. More...

#include "common/util/file_util.h"
#include "common/ug_config.h"
#include "common/error.h"
#include "common/assert.h"
#include "common/profiler/profiler.h"
#include "path_provider.h"
#include <vector>
#include <cstring>

Namespaces

 ug
 the ug namespace
 

Functions

UG_API bool ug::FileCompare (const char *file1, const char *file2)
 !!! Serial i/o version !!! More...
 
UG_API bool ug::FileExists (const char *filename)
 !!! Serial i/o version !!! More...
 
bool ug::FileTypeIs (const char *filename, const char *extension)
 !!! Serial i/o version !!! More...
 
std::string ug::FindDirInStandardPaths (const char *dirname)
 searches the directory in the standard paths. More...
 
std::string ug::FindFileInStandardPaths (const char *filename)
 searches the file in the standard paths. More...
 
string ug::MakeTmpFile (string filename, const string &extension, bool &bSuccess)
 !!! Serial i/o version !!! More...
 
bool ug::ReadFile (const char *filename, vector< char > &file, bool bText)
 

Detailed Description

Implementation of OS independent file utility functions.

Date
2012-05-15