21 lines
475 B
C++
21 lines
475 B
C++
// TJP COPYRIGHT HEADER
|
|
|
|
#pragma once
|
|
|
|
#include "Contents.h"
|
|
#include <tjp/core/string/StringView.h>
|
|
|
|
namespace tjp::core::file {
|
|
|
|
struct VirtualFileSystem;
|
|
|
|
Contents readFile(const VirtualFileSystem &system, const StringView &path);
|
|
void writeFile(VirtualFileSystem &system, const StringView &path, ContentsView);
|
|
bool fileExists(const VirtualFileSystem &system, const StringView &path);
|
|
|
|
} // namespace
|
|
|
|
#ifdef TJP_CORE_HEADER_ONLY
|
|
#include "VirtualFileSystem.cpp"
|
|
#endif
|