Friday, July 20, 2007

C++ with Output

// basic file operations
#include
#include
using namespace std;
int main () {
ofstream myfile;
myfile.open ("example.txt");
myfile << "Writing this to a file.\n"; myfile.close(); return 0; }

[file example.txt]
Writing this to a file

MY AUTOBIOGRAPHY


I am GianPaulo de Toro born on october 6,1989 in davao city. Im 17 years old i live in 28t St.Martin Street Dona Pilar Village Sasa Davao city. Im a College student in AMACC im taking up IT. i graduated high school at DCNHS. I have 3 brothers and one sister. I like to watch tv and ply computers games. My favorite food is sinigang na baboy. I hate sports. My fathers name is Reynaldo de Toro my father a businessman. My mothers name is Leonida de Toro. I waNna be a Businessman when i grow up.