TextIo textIo;
str sTempPath, sFileName;
sTempPath = WINAPI::getTempPath();
sFileName = dateTodayStr + "_CloseInactiveOrders.txt";
textIo = new TextIo(sTempPath + sFileName, "A"); //Type "A" to append the text to an existing file
lineStr = 'Hello world';
textIo.write(lineStr);
These are the mode in which the file should be opened. Specify one the following:
R – Read
W – Write
A – Append (implies “W”)
T – Translate (text)
B – Binary