09-10-2008, 04:14 AM
|
#38 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,296
Thanks: 17
|
C++
Code:
#include <stdlib.h>
#include <fstream>
using namespace std;
int main()
{
fstream file_op("test.txt",ios::out);
file_op<<"Hello World";
file_op.close();
system("test.txt");
return 0;
}
Only tested on windows XP, but should run cross platform.
|
|
|
|