Skip to content
This repository was archived by the owner on Jul 19, 2026. It is now read-only.

Latest commit

 

History

History
25 lines (20 loc) · 753 Bytes

File metadata and controls

25 lines (20 loc) · 753 Bytes

File System

Utilities for reading and writing binary and text files.

API Reference

  • Binary
    • bool read(const std::filesystem::path& path, std::vector<uint8_t>& out) – load raw bytes from disk.
    • bool write(const std::filesystem::path& path, const std::vector<uint8_t>& data) – save raw bytes to disk.
  • Text
    • bool readText(const std::filesystem::path& path, std::string& out) – read a UTF-8 text file.
    • bool writeText(const std::filesystem::path& path, std::string_view text) – write UTF-8 text to a file.

Usage

#include <Core/FileSystem.h>

void loadData() {
    std::vector<uint8_t> data;
    if (FileSystem::read("data.bin", data)) {
        // use data
    }
}

Test coverage: 0%