refactor(main): move file operation functions to new source (#2124)

This commit is contained in:
ReenigneArcher
2024-02-10 07:37:27 -05:00
committed by GitHub
parent 1c50bc502b
commit cd2153f340
11 changed files with 113 additions and 78 deletions

14
src/file_handler.h Normal file
View File

@@ -0,0 +1,14 @@
/**
* @file file_handler.h
* @brief Header file for file handling functions.
*/
#pragma once
#include <string>
namespace file_handler {
std::string
read_file(const char *path);
int
write_file(const char *path, const std::string_view &contents);
} // namespace file_handler