-
Notifications
You must be signed in to change notification settings - Fork 0
File_manager
sanya_fritz edited this page Mar 23, 2024
·
1 revision
This library provides functions for working with files.
-
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.
- Parameter:
-
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.
- Parameters: