14 lines
467 B
C++
14 lines
467 B
C++
#pragma once
|
|
#include "sapphirepch.h"
|
|
|
|
/* Namespace for simple file operations. */
|
|
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);
|
|
/* Return a filename without its extension. */
|
|
std::string remove_file_extension(const std::string& filename);
|
|
} // namespace FileIO
|