#include <iostream>
#include <fstream>
using namespace std;
int main()
{
string account;
string reason1, reason2, reason3, reason4, reason5, reason6;
string action;
cout << "This is created by xje \nYou have choisen to add a new item to ur logfile.\n\n";
cout << "If there is no input needed just press enter, or fill in 0.\n";
cout << "Account name:";
cin >> account;
cout << "Reason:";
cin >> reason;
cout << "Action:";
cin >> action;
ofstream bestand;
bestand.open("gmlog.txt", ios_base::app);
if(!bestand.is_open()) {
cerr << "Could not open the GM log." << endl;
exit(1);
}
bestand << "Account: "<< account << endl;
bestand << "Reason: " << reason << endl; // how i do this lol
bestand << "Action: " << action << endl;
bestand << "-------------------" << endl;
bestand.close();
return 0;
}