#include "common/logger.h"
#include "common/platform_exception.h"
#include "common/scope_exit.h"
+#include "common/tools.h"
#include "tizen/tizen.h"
using common::ErrorCode;
std::string* result) {
ScopeLogger();
std::ifstream input_file;
+
input_file.open(file_path, std::ios::in);
if (input_file.is_open()) {
input_file.close();
*result = ConvertToUtf8(file_path, outString);
} else {
+ LoggerW("open() error: %s", common::tools::GetErrorString(errno).c_str());
std::stringstream ss_error_msg;
ss_error_msg << "Failed to open file: " << file_path;
return LogAndCreateResult(ErrorCode::IO_ERR, ss_error_msg.str().c_str());