Skip to content

File_manager

sanya_fritz edited this page Mar 23, 2024 · 1 revision

Documentation for the file_manager library

This library provides functions for working with files.

Functions

  • readFile(const ponystring& filename): Reads the contents of a file and returns it as a string.

    • Parameter:
      • filename: The path to the file to read.
    • Returns: The content of the file as a string of type ponystring.
  • writeToFile(const std::string& filename, const std::string& content): Writes the specified content to a file.

    • Parameters:
      • filename: The path to the file to write data to.
      • content: The string containing the content to be written to the file.
    • Returns: true if the file write operation is successful, false otherwise.

Clone this wiki locally