MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / FileToString

Function FileToString

samples/hmd_opencv_sandbox/common_hello.cpp:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140std::string FileToString( const char * fn )
141{
142 std::ifstream t( fn );
143 std::stringstream buffer;
144 buffer << t.rdbuf();
145 return buffer.str();
146}

Callers 1

CheckShaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected