sapphire/src/FileIO.h

12 lines
345 B
C
Raw Normal View History

#pragma once
#include <string>
/* Namespace for simple file operations. */
2022-06-08 18:19:27 +00:00
namespace FileIO
{
/* Helper function to read all of a file's contents. */
std::string read_all(const std::string& filename);
/* Helper function to write a string to a file. */
void write_all(const std::string& filename, const std::string& contents);
}