MCPcopy Create free account
hub / github.com/Do0ks/GSpots / ReadEntireFile

Function ReadEntireFile

UEVersionScanner/UEVersionScanner.cpp:16–22  ·  view source on GitHub ↗

Helper: Reads an entire file into a string.

Source from the content-addressed store, hash-verified

14
15// Helper: Reads an entire file into a string.
16static std::string ReadEntireFile(const std::string& filePath) {
17 std::ifstream file(filePath, std::ios::binary);
18 if (!file) return "";
19 std::stringstream buffer;
20 buffer << file.rdbuf();
21 return buffer.str();
22}
23
24// Helper: Checks if a file exists.
25static bool FileExists(const std::string& filePath) {

Callers 1

GetVersionFromFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected