|
@@ -1342,7 +1342,7 @@ namespace robotics {
|
|
|
if (filepath.empty())
|
|
|
return "";
|
|
|
if (std::filesystem::exists(filepath)) {
|
|
|
- std::ifstream file(path, std::ios::in);
|
|
|
+ std::ifstream file(filepath, std::ios::in);
|
|
|
if (file.is_open()) {
|
|
|
return std::string((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
|
|
|
}
|