MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / WriteStringAsFile

Function WriteStringAsFile

SampleFramework12/v1.00/FileIO.cpp:130–134  ·  view source on GitHub ↗

Writes the contents of a string to a file

Source from the content-addressed store, hash-verified

128
129// Writes the contents of a string to a file
130void WriteStringAsFile(const wchar* filePath, const std::string& data)
131{
132 File file(filePath, FileOpenMode::Write);
133 file.Write(data.length(), data.c_str());
134}
135
136// == File ========================================================================================
137

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected