9{
10 std::string resolvedPath = PathResolver::Resolve(path);
11
12 std::string content;
13 std::ifstream s(resolvedPath, std::ios::in);
14
15
16 if (!s.is_open())
17 {
18 EE_CORE_ERROR("Could not open file : {0}, file does not exist", resolvedPath);
19 return std::string();
20 }
21
22
23 std::string line = "";
24 while (!s.eof())
25 {
26 std::getline(s, line);
27 content.append(line + "\n");
28 }
29
30
31 s.close();
32
33 return content;
34}