In my application, I want to append the date to a file name.
My code so far is :
// To Get the date and put the month and day into a var called today
SYSTEMTIME st;
GetSystemTime(&st);
string today;
stringstream(today) << st.wMonth << st.wDay;
// I can't figure out how to append the date to a string
// that the rename command will accept
char oldname[] ="C:\\Program Files\\IBM\\LOTUS\\NOTES\\NOTES.INI";
char newname[] ="C:\\Program Files\\IBM\\LOTUS\\NOTES\\NOTES.INI" << today;