Skip to content

fs Module

Aarik Pokras edited this page Dec 11, 2024 · 2 revisions

Functions

read_file

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_file

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.

Clone this wiki locally