#pragma once
#include
void write_string_to_file(std::string filename, std::string content);
----
===== write_string_to_file.cpp =====
#include "write_string_to_file.hpp"
#include
#include
void write_string_to_file(std::string filename, std::string content)
{
std::ofstream(filename) << content;
}
----
===== References =====
https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt