Esuom
Guru

Okay, I was just trying to write up a simple program to do some monotonous work that I cbf to do by hand. It compiles/runs but it doesn't save the file...
Code:
//I know. Probably something really obviously. Im learning :P
#include <iostream>
#include <fstream>
#include <iostream.h>
//Probably a bunch of unnecessary includes, I know :P
using namespace std;
int main () {
int a;
cin >> a;
ofstream myfile (a + ".php");
myfile.open (a + ".php"); //Probably my error?
myfile << "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"640\" height=\"480\">" << endl;
myfile << " <param name=\"movie\" value=\"" << a << ".swf\" />" << endl;
myfile << "<param name=\"quality\" value\"high\" />" << endl;
myfile << "<embed src=\"./" << a << ".swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"640\" height=\"480\"></embed>" << endl;
myfile << "</object>" << endl;
myfile.close();
return 0;
}

