-
Notifications
You must be signed in to change notification settings - Fork 1
fs Module
Aarik Pokras edited this page Dec 11, 2024
·
2 revisions
Read a file into a std::vector
std::vector<std::string> read_file(std::string file)
This can be put into a strarr
using the following:
strarr name({read_file("./file.txt")});
Write to a file
int write_file(std::string file, std::string content)
If anything other than a 0
is returned, the file could not be opened.