Template
1
0

Forgor to add .close to file 💀

This commit is contained in:
2025-06-26 02:09:51 +03:00
parent effa9ec9fa
commit 7716494a1c

View File

@@ -8,6 +8,7 @@ std::string Helpers::ReadFile(std::string Path) {
std::ifstream file(Path); std::ifstream file(Path);
std::stringstream contents; std::stringstream contents;
contents << file.rdbuf(); contents << file.rdbuf();
file.close();
return contents.str(); return contents.str();
} }