Hello,
short question, is it possible to redirect the output of the logfile to another destination?
Instead of <appdir>.logfile.txt to c:\temp\log.txt ?
congratulations for vice world champs.
Logfile1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
void logtext(const char *text, bool newline = true)
{
bool opened;
ClassEFile ef;
opened = ef.Open("yourpath/log.txt");
if (!opened)
opened = ef.New("yourpath/log.txt");
if (opened)
{
ef.Seek(ef.Size());
ef.Write(text, ClassEStd::StrLen(text));
if (newline)
{
char newlinestr[] = "\r\n";
ef.Write(newlinestr, 2);
}
ef.Close();
}
}
19 lines; 10 keywds; 1 nums; 59 ops; 3 strs; 0 coms Syntactic Coloring v0.4 - Dan East