Пример #1
0
bool OTASCIIArmor::LoadFromExactPath(const std::string& filename)
{
    std::ifstream fin(filename.c_str(), std::ios::binary);

    if (!fin.is_open()) {
        otWarn << "OTASCIIArmor::LoadFromExactPath: Failed opening file: "
               << filename << "\n";
        return false;
    }

    return LoadFrom_ifstream(fin);
}
Пример #2
0
bool OTASCIIArmor::LoadFromExactPath(const std::string & filename)
{
    std::ifstream fin(filename.c_str(), std::ios::binary);
    
 	if (!fin.is_open())
	{
		OTLog::vOutput(1, "OTASCIIArmor::LoadFromExactPath: Failed opening file: %s\n",
                       filename.c_str());
		return false;
	}
    
	return LoadFrom_ifstream(fin);
}