All pastes #504859 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-23 09:25 UTC
rendered paste body
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
    cout << "This is the GMlog organizer from xje by xje :P keke.\n";
    cout << "Basicly if this shit doesnt work well nvm it than.\n";
    cout << "Btw p4ra loves lemmings <3. \n\n";
    string gm;
    cout << "Welcome, please enter your name:[GM]";
    cin >> gm;
    // Begin writing
    ofstream bestand;
    bestand.open("gmlog.txt");
    
    if (!bestand.is_open()) {
       cerr << "Could not make the Log file." << endl;
       exit(1);
       }      
       bestand << "------------------------------" << endl;
       bestand << "-- Gm Log From:[GM]" << gm << "   --" << endl;
       bestand << "------------------------------" << endl;
       bestand.close();
       
       return 0;
}