#include <fstream> void main() { ofstream outfile("test.txt"); outfile < < "hello world" < < endl; outfile.close(); }