How do you automatically add text from a file?
Dashware is an (free) app which does just this.

Telemetry Data Overlay on your Videos
Easily display GPS, vehicle, physiology, and environment data from
smartphones and dedicated loggers.

Besides CSV text files, it imports data from many formats. You don't have to render the final composited video from Dashware. You can export a synchronised chroma-key ready video of the overlay for import into your video editor.