XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
fs.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <3ds.h>
8#include <string>
9
14namespace xs::fs {
21void AppendFile(const std::string &path, const std::string &data);
22
29std::string ReadFile(const std::string &path);
30
37void WriteFile(const std::string &path, const std::string &data);
38
39} // namespace xs::fs
Filesystem-related utilities.
Definition fs.hpp:14
void WriteFile(const std::string &path, const std::string &data)
Writes data to a file, overwriting any existing contents.
std::string ReadFile(const std::string &path)
Reads the entire contents of a file into a string.
void AppendFile(const std::string &path, const std::string &data)
Appends data to a file (creates the file if it doesn't exist).