blob: 221ff816ab7f61b6b56f4d7415ea93f268abae80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "file.hpp"
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Texo File Exporter
*/
TexoExporterFile::TexoExporterFile(FILE *file): file(file)
{}
bool TexoExporterFile::Put(char c)
{
fputc(c, file);
return !ferror(file);
}
bool TexoExporterFile::Put(const ScriptVariable &str)
{
fwrite(str.c_str(), 1, str.Length(), file);
return !ferror(file);
}
|