Rose::StringUtility::writeFile
Create a file.
Synopsis
Declared in <src/Rose/StringUtility/FileUtility.h>
[[visibility]]
void
writeFile(
std::string const& outputString,
std::string const& fileNameString,
std::string const& directoryName);
Description
Creates a new file, truncating any existing file with the same name, and writes the string outputString into the file. The name of the file is constructed by concatenating directoryName and fileNameString without any intervening component separator (e.g., no "/").
If the file cannot be created then this function silently fails (or aborts if ROSE is compiled in debug mode).
Parameters
Name |
Description |
outputString |
Contents to write. |
fileNameString |
File name component. |
directoryName |
Directory path. |
Created with MrDocs