blob: 93458ee3b8e1d096f6324ae0f6d61845a7040c15 [file] [log] [blame]
Yuxiao Zhang1e760602024-03-07 12:35:24 -08001#pragma once
2
3#include <filesystem>
4#include <string>
5
6namespace fs = std::filesystem;
7constexpr auto statusFile = "/run/dhcp_status";
8
9// Function to read contents from a file
10std::string fileRead(const fs::path& filename);
11
12// Function to write contents to a file atomically
13void fileWrite(const fs::path& filename, const std::string& data);