MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / SaveStringToFile

Function SaveStringToFile

core/platform.cpp:242–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bool SaveStringToFile(const char* filename, const char* s)
243{
244 FILE* f = fopen(filename, "w");
245 if (!f)
246 {
247 std::cout << "Could not open file for writing: " << filename << std::endl;
248 return false;
249 }
250 else
251 {
252 fputs(s, f);
253 fclose(f);
254
255 return true;
256 }
257}
258
259
260string StripFilename(const char* path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected