sculpto
files_save.cpp
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file file.h
3 * \brief Assets manager file processing functions implementation module.
4 *
5 * \author Sabitov Kirill
6 * \date 17 July 2022
7 *********************************************************************/
8
9#include "sclpch.h"
10#include "files_save.h"
11
12void scl::assets_manager::SaveFile(const std::string &Data, const std::filesystem::path &FilePath)
13{
14 std::ofstream file(FilePath);
15 SCL_CORE_ASSERT(file.is_open(), "Error during opening/creating file \"{}\".", FilePath.string());
16
17 file << Data;
18}
#define SCL_CORE_ASSERT(expr,...)
Definition: assert.h:69
void SaveFile(const std::string &Data, const std::filesystem::path &FilePath)
Definition: files_save.cpp:12
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.