MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / StringLoadFromFile

Function StringLoadFromFile

Rtxpt/SampleCommon/SampleCommon.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417std::string StringLoadFromFile( const std::filesystem::path & filePath )
418{
419 std::ifstream file(filePath);
420 if (!file) { return ""; }
421
422 std::ostringstream buffer;
423 buffer << file.rdbuf();
424 return buffer.str();
425}
426
427std::tuple<int, std::string, std::string > SystemShell(const std::string & command, bool useCmd, bool blockOnExecution)
428{

Callers 1

SystemShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected