25 lines
320 B
C++
25 lines
320 B
C++
|
|
#include <exception>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
|
|
#include "SmartStreams.hpp"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
auto test = nb::TerminalColor(9, 2030);
|
|
|
|
std::cout << test;
|
|
|
|
std::ofstream file;
|
|
file.open("test.txt");
|
|
if (file.is_open()) {
|
|
file << test;
|
|
}
|
|
file.close();
|
|
|
|
return 0;
|
|
} |