memgraph/include/utils/file.hpp
2016-09-14 12:19:56 +01:00

21 lines
274 B
C++

#pragma once
#include <fstream>
namespace utils
{
inline bool fexists(const char *filename)
{
std::ifstream ifile(filename);
return (bool)ifile;
}
inline bool fexists(const std::string& filename)
{
std::ifstream ifile(filename.c_str());
return (bool)ifile;
}
}