#include <fstream>
#include <iostream>
#include <cstdlib>
using namespace std;
int main( ) {
fstream file;
file.open( "test.txt", fstream::out );
file << "<br>This is only a test.<br>";
file.close( );
system( "cat test.txt" );
cout << "<br>The file <em>test.txt</em> is created.";
}
|