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

Function WriteStringAsFile

SampleFramework11/v1.02/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

Calls 2

lengthMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected