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); }
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); }