summaryrefslogtreecommitdiff
path: root/src/file.cpp
blob: c46a1f25c4fd4e8b977cfd597adfa9a2cdf48aff (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);
}