stdioFile
The Origin C stdioFile class provides read/write access to text and binary files using buffered stream io. However, the stdioFile class does not support stream io to stdin, stdout, and stderr. See also the file class for unbuffered io to binary files. The stdioFile class is derived from the file class from which it inherits methods and properties.
EX1
void stdioFile_ex1() { // Get the Origin folder path string strOriginPath, strFile; strOriginPath = GetAppPath() + "OriginC"; strFile = strOriginPath + "\\test.txt"; // Create a new standard I/O file. stdioFile ff(strFile, file::modeCreate | file::modeReadWrite); // Write strings string strLine1 = "line 1:"; string strLine3 = "line 3:"; ff.WriteString(strLine1); ff.WriteString("line 2:"); ff.WriteString(strLine3); }
origin.h