I want to write a timestamp to a file in a certain format.
Is there a way to create a new string using modifiers (see printf code below)? Or is there another way to use string modifiers in a TextStream?
printf("%02d-%02d-%02d_%02d:%02d:%02d.%02d\n",
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);