22 lines
431 B
C++
22 lines
431 B
C++
// TJP COPYRIGHT HEADER
|
|
|
|
#pragma once
|
|
|
|
#include "Contents.h"
|
|
#include <tjp/core/string/String.hpp>
|
|
#include <tjp/core/containers/Optional.hpp>
|
|
|
|
namespace tjp::core::file {
|
|
|
|
Optional<Contents> read(const String &path);
|
|
Contents require_read(const String &path);
|
|
|
|
Optional<Contents> read(const StringView &path);
|
|
Contents require_read(const StringView &path);
|
|
|
|
} // namespace
|
|
|
|
#ifdef TJP_CORE_HEADER_ONLY
|
|
#include "read.cpp"
|
|
#endif
|