blob: ec3286b21f9229e777b3262f81a29954d1f1fb86 [file] [log] [blame]
/*
* Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
*
* Written by Tomáš Pecka <tomas.pecka@fit.cvut.cz>
*
*/
#pragma once
#include <filesystem>
#include <string>
#include <vector>
namespace velia::utils {
std::string readFileString(const std::filesystem::path& path);
int64_t readFileInt64(const std::filesystem::path& path);
std::vector<uint32_t> readFileWords(const std::filesystem::path& path, int valuesCount);
std::string readFileToString(const std::filesystem::path& path);
void safeWriteFile(const std::string& filename, const std::string_view& contents);
}