MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / readFileToString

Method readFileToString

KittyMemoryEx/KittyIOFile.hpp:329–333  ·  view source on GitHub ↗

* @brief Reads the contents of a file into a string. * * @param filePath The file path to read from. * @param str The string to read into. * @return true if the file was read successfully, false otherwise. */

Source from the content-addressed store, hash-verified

327
328 /**
329 * @brief Copies the contents of a file to another file.
330 *
331 * @param srcFilePath The source file path.
332 * @param dstFilePath The destination file path.
333 * @return true if the file was copied successfully, false otherwise.
334 */
335 inline static bool copy(const std::string &srcFilePath, const std::string &dstFilePath)
336 {

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
readToStringMethod · 0.80

Tested by

no test coverage detected