I cant seem to have output appears in my .txt file.
I would like to append below the text file in future.
using namespace std;
int main()
{
    string month;
    int year;
    stringstream filename;
    cin >> month;
    cin >> year;
    filename << "Expenses_" << month << "_" << year << ".txt";
    ofstream myfile(filename.str()); 
    myfile.open(filename.str());
    myfile << "Hello World!";
    myfile.close();
    return 0;
}
 
     
     
    