This is how the first discussion board on the web was written to work. Search for Matt's script WWWBoard. Perl script added the posted comment with date into the HTML file's insertion point.
At that time in the 90s this was heavily deployed everywhere. This was before PHP-BB and other database based boards got popular.