// Simple file program - fstream illustration - adapted from www.cplusplus.com #include // std::fstream int main () { std::fstream fs{"test.txt", std::fstream::out}; // IO operations here fs << "Some text, and a number: " << 5 << std::endl; fs.close(); return 0; }