Hello, please look at the page
for source file of TMacro.cxx.
And see the function:
void TMacro::SaveSource(const char *filename)
You may notice
are missing from out.open(filename, ios::out. Since it is created automatically, please check it, maybe it is due to potential bug of THtml.